simple_bdd 0.0.7 → 0.0.8

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: 2563a3bf2a35ea7ac7f31270833b6fe27b7fb33a
4
- data.tar.gz: e8a8cd3214239544fbac50bbc470b4dfd5225734
3
+ metadata.gz: aebdd1de58b188ab08e58a08309bfd0481b8827e
4
+ data.tar.gz: 510527d35c86bcee42d322f8dc2e893253734e7d
5
5
  SHA512:
6
- metadata.gz: 8d96c689534b38d9f6ae26b66705478fb68c05fe6a6aec419bff07851f1e4077eadae43fb012bf4e3d2f302c9fbdf10bc4a61f87727566d5180f681992371581
7
- data.tar.gz: a6d7b3bcbbfea5da2e40738584d336ea9f442e24b1be9c6f5b4b614b91f1fe02b8d14dc78fbbe3541fd6fc70271da46961289a32abf64c5442430d25a6bc409a
6
+ metadata.gz: dfb50927284c51a56f7546b7363627650c2bc333c9b16cd6a94849b39afb17ddd6223157058b7b397af7bbf27a1c34cb7bf536a809caf7eff05dae0d02f35c3d
7
+ data.tar.gz: 37a8fe60ffeb7e9364ca7d0995847087d2f3308d0c6c5fa1b0a92164be216109053689884deb109c6800a09f47fa1b7ba0bedd558df55823fb90feaae5637566
data/lib/simple_bdd.rb CHANGED
@@ -24,7 +24,7 @@ module SimpleBdd
24
24
  end
25
25
 
26
26
  PRESERVED_CHARS = '\\w'
27
- CONVERTED_CHARS = Regexp.escape(' /')
27
+ CONVERTED_CHARS = Regexp.escape(' /-')
28
28
 
29
29
  def methodize(message)
30
30
  message
@@ -1,3 +1,3 @@
1
1
  module SimpleBdd
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
@@ -33,6 +33,10 @@ describe SimpleBddExample do
33
33
  it "underscores slashes" do
34
34
  subject.send(:methodize, "Chocolate/Vanilla Cake").should == "chocolate_vanilla_cake"
35
35
  end
36
+
37
+ it "underscores hyphens" do
38
+ subject.send(:methodize, "Red-Velvet Cake").should == "red_velvet_cake"
39
+ end
36
40
  end
37
41
 
38
42
  ["behavior", "behaviour", "by", "and_by", "it_also", "behaves_like"].each do |method|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_bdd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robbie Clutton
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-25 00:00:00.000000000 Z
11
+ date: 2014-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -90,7 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
90
90
  version: '0'
91
91
  requirements: []
92
92
  rubyforge_project:
93
- rubygems_version: 2.0.3
93
+ rubygems_version: 2.1.11
94
94
  signing_key:
95
95
  specification_version: 4
96
96
  summary: Gherkin methods that turn strings into methods