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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6b8ca14ed7de7bc6f6934c847c4c75d15e515d56
4
- data.tar.gz: 9484550bd54749dc0b97b4fc952b930298fcd4e9
3
+ metadata.gz: b18db0e9b5eee7ad4b33f2facd0cc6ca6531ae0e
4
+ data.tar.gz: 10026774c376d8e335ec8695ac957514988eb44a
5
5
  SHA512:
6
- metadata.gz: a72765cb181d7da429f54bebfcacee64358fb63f3c4ef5d3ac4559ac5d182350584f2a58b5213886b25ca10d7c4ed6a98fd7f1f0dfb830dd44ec387318c7560e
7
- data.tar.gz: c77adb5a01809d7c2ad2b9bb23ed2059694e4f851742f2336454a598519cf61aac4c61464eb64762356e55742d8529333be7eca1489505121c1941f3d4277d6c
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) { Given(msg, &block) }
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) { Then(msg, &block) }
84
+ after(:each) do
85
+ Then(msg) { instance_eval(&block) }
86
+ end
83
87
  end
84
88
  end
85
89
 
@@ -1,3 +1,3 @@
1
1
  module Bdd
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
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.5
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-01 00:00:00.000000000 Z
11
+ date: 2015-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec