mocha-on-bacon 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -13,11 +13,11 @@ module Bacon
13
13
 
14
14
  alias_method :it_before_mocha, :it
15
15
 
16
- def it(description)
16
+ def it(description, &block)
17
17
  it_before_mocha(description) do
18
18
  begin
19
19
  mocha_setup
20
- yield
20
+ block.call
21
21
  mocha_verify(MochaRequirementsCounter)
22
22
  rescue Mocha::ExpectationError => e
23
23
  raise Error.new(:failed, e.message)
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{mocha-on-bacon}
8
- s.version = "0.1.0"
8
+ s.version = "0.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Eloy Duran"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mocha-on-bacon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eloy Duran