simple_bdd 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 38a859d56adb2b287bbfe19b519710a991678c66
4
+ data.tar.gz: 6a503535bc2943ed9bed7ce759f855ee6c740106
5
+ SHA512:
6
+ metadata.gz: c5a8da1fd6a829039fe69e8bd2d2f3b464629c2cbe647a323f4a695151288a927fec9fba1a21e08e72818c1462cff4a6166b0af2c296aa34e95e779ac0ec94a3
7
+ data.tar.gz: 709b89f255a1799089a7036f6f0b303637ac8ac71a796f43f3914cbbb20cd92fccfe9465abbdc6dd0b19d5b44873c7d235804791831f05c2f0ab73dca66b0bfb
@@ -1,3 +1,3 @@
1
1
  module SimpleBdd
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
data/lib/simple_bdd.rb CHANGED
@@ -23,4 +23,10 @@ module SimpleBdd
23
23
  .gsub(/[^#{PRESERVED_CHARS}#{CONVERTED_CHARS}]/, "")
24
24
  .gsub(/[#{CONVERTED_CHARS}]+/, "_")
25
25
  end
26
+
27
+ %w[behavior behaviour behaves_like by and_by it_also].each do |method|
28
+ define_method(method) do |&block|
29
+ block.call
30
+ end
31
+ end
26
32
  end
@@ -34,4 +34,18 @@ describe SimpleBddExample do
34
34
  subject.send(:methodize, "Chocolate/Vanilla Cake").should == "chocolate_vanilla_cake"
35
35
  end
36
36
  end
37
+
38
+ ["behavior", "behaviour", "by", "and_by", "it_also", "behaves_like"].each do |method|
39
+ describe "##{method}" do
40
+ it 'calls the block' do
41
+ called = false
42
+ subject.send(method) do
43
+ called = true
44
+ end
45
+
46
+ expect(called).to be_true
47
+ end
48
+ end
49
+ end
50
+
37
51
  end
metadata CHANGED
@@ -1,62 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_bdd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
5
- prerelease:
4
+ version: 0.0.5
6
5
  platform: ruby
7
6
  authors:
8
7
  - Robbie Clutton
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-05-18 00:00:00.000000000 Z
11
+ date: 2013-09-25 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rspec
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rake
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: zeus
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - '>='
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - '>='
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
62
55
  description: Gherkin methods that turn strings into methods
@@ -80,27 +73,26 @@ files:
80
73
  - spec/spec_helper.rb
81
74
  homepage: ''
82
75
  licenses: []
76
+ metadata: {}
83
77
  post_install_message:
84
78
  rdoc_options: []
85
79
  require_paths:
86
80
  - lib
87
81
  required_ruby_version: !ruby/object:Gem::Requirement
88
- none: false
89
82
  requirements:
90
- - - ! '>='
83
+ - - '>='
91
84
  - !ruby/object:Gem::Version
92
85
  version: '0'
93
86
  required_rubygems_version: !ruby/object:Gem::Requirement
94
- none: false
95
87
  requirements:
96
- - - ! '>='
88
+ - - '>='
97
89
  - !ruby/object:Gem::Version
98
90
  version: '0'
99
91
  requirements: []
100
92
  rubyforge_project:
101
- rubygems_version: 1.8.25
93
+ rubygems_version: 2.0.3
102
94
  signing_key:
103
- specification_version: 3
95
+ specification_version: 4
104
96
  summary: Gherkin methods that turn strings into methods
105
97
  test_files:
106
98
  - spec/pending_feature_spec.rb