bdd 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bdd/rspec/example_group.rb +6 -2
- data/lib/bdd/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b18db0e9b5eee7ad4b33f2facd0cc6ca6531ae0e
|
4
|
+
data.tar.gz: 10026774c376d8e335ec8695ac957514988eb44a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6cb3628085f1f53c88131537ce47ab48595a02508c4fc65694e9a90fad86737f96e6f58e3bed1ae081404d0a802411be92516245323cfee310e27dee4afd5304
|
7
|
+
data.tar.gz: 790ab4118a4521b46409f2f9d8a218d665429d53c8f9221a9995059b1ea467157e285214b891653663dd08581d068abf9c16d2bb08f952f6275e8a2d9998fe70
|
@@ -75,11 +75,15 @@ module Bdd
|
|
75
75
|
|
76
76
|
module ClassMethods
|
77
77
|
def Given(msg, &block)
|
78
|
-
before(:each)
|
78
|
+
before(:each) do
|
79
|
+
Given(msg) { instance_eval(&block) }
|
80
|
+
end
|
79
81
|
end
|
80
82
|
|
81
83
|
def Then(msg, &block)
|
82
|
-
after(:each)
|
84
|
+
after(:each) do
|
85
|
+
Then(msg) { instance_eval(&block) }
|
86
|
+
end
|
83
87
|
end
|
84
88
|
end
|
85
89
|
|
data/lib/bdd/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bdd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Pinto
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|