cucumber-sentences 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/cucumber-sentences.gemspec +1 -1
- data/lib/cucumber-sentences.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aac970b4446e114b146442f3d7089cd90ab52c78
|
4
|
+
data.tar.gz: 98b3fe557e0c1a6873e78a57bddc319acc22b7b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7ecb8c6c93255d0fb7b283996c5e9961cd9afd36067507e9529dfab637ad7f524834be37c16114a4147c9569fb5e7a49d0b0e84eefa4d2a3b18147bbcf1490e
|
7
|
+
data.tar.gz: 904d24fcaf5e592aefedd864cc9caa574bb1b2d68d547026d454ef35e2b006f6c24778e8c544f937ab107b3ced1c78bb24102910559d693876458835503d74d9
|
data/README.md
CHANGED
@@ -13,7 +13,7 @@ gem "cucumber-sentences"
|
|
13
13
|
Add in your `features/step_definitions/imports.rb`
|
14
14
|
|
15
15
|
````
|
16
|
-
ENV
|
16
|
+
ENV['CUCUMBER_ROOT'] = File.absolute_path('../', File.dirname(__FILE__));
|
17
17
|
require "cucumber-sentences"
|
18
18
|
`````
|
19
19
|
|
data/cucumber-sentences.gemspec
CHANGED
@@ -2,7 +2,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = 'cucumber-sentences'
|
5
|
-
s.version = '0.0.
|
5
|
+
s.version = '0.0.6'
|
6
6
|
s.license = 'MIT'
|
7
7
|
s.summary = "Pre-built sentences for your cucumber tests"
|
8
8
|
s.description = "Pre-built sentences for your cucumber tests"
|
data/lib/cucumber-sentences.rb
CHANGED
@@ -10,7 +10,7 @@ end
|
|
10
10
|
|
11
11
|
|
12
12
|
Given(/^I change the domain to "([^"]*)"$/) do | domain_name |
|
13
|
-
require File.join(ENV
|
13
|
+
require File.join(ENV['CUCUMBER_ROOT'],'support/helpers/domain')
|
14
14
|
domain = Domain.get(domain_name)
|
15
15
|
|
16
16
|
unless domain
|
@@ -21,7 +21,7 @@ Given(/^I change the domain to "([^"]*)"$/) do | domain_name |
|
|
21
21
|
end
|
22
22
|
|
23
23
|
Given(/^I am on the "([^"]*)" of (.+) "([^"]*)"$/) do | page_name, type, identifier |
|
24
|
-
require File.join(ENV
|
24
|
+
require File.join(ENV['CUCUMBER_ROOT'], 'support/helpers/'+ type)
|
25
25
|
typeClassName = type.sub(/^(\w)/) {|s| s.capitalize}
|
26
26
|
|
27
27
|
clazz = Object.const_get(typeClassName)
|