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 +1 -1
- data/lib/mocha-on-bacon.rb +2 -2
- data/mocha-on-bacon.gemspec +1 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
data/lib/mocha-on-bacon.rb
CHANGED
@@ -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
|
-
|
20
|
+
block.call
|
21
21
|
mocha_verify(MochaRequirementsCounter)
|
22
22
|
rescue Mocha::ExpectationError => e
|
23
23
|
raise Error.new(:failed, e.message)
|
data/mocha-on-bacon.gemspec
CHANGED