cucumber-sentences 0.0.4 → 0.0.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6b8e1555f8699981d6b9ef995083707786866ae2
4
- data.tar.gz: 415ab446557d8d0f9db1a994ef5da0552f4c99ac
3
+ metadata.gz: f07226f445425c2678fefbb1cb0fce78b5d0c477
4
+ data.tar.gz: 4d1672b5d3cbc2f0f3dbbe2c800303fb8ba1f0a1
5
5
  SHA512:
6
- metadata.gz: aad3dd137fe4da479bafe000dda755810fbeebf5e026ae5d46b01ffdfe91bb2b8a563f11f7cc64e0eb90fe0a0440ed3ab55a99d967bd4a33693edfc465a5e6e9
7
- data.tar.gz: 92364f168baba9408a196345031be8317973dc064021d28705351a64a634614302fc2d356ff52466656f865c983dbb490874c04e5b5be73ac535a98b59695872
6
+ metadata.gz: 0db56a4e50699b93643df69b2941009992630eb0e4ac2bb22a210e1e952266472b38861af09c48eb79e620847e6087fd19a8cbd0f212931fa80f39f544c0b1e4
7
+ data.tar.gz: 4eb114c3736053d9c01f8edfde6f69db52c1dcb21e37b2d74a70fd47401d84dfd0dcfb36282e274b4ba258b48a05450a9019828731837c2b69c36fc614e61803
data/README.md CHANGED
@@ -13,6 +13,7 @@ gem "cucumber-sentences"
13
13
  Add in your `features/step_definitions/imports.rb`
14
14
 
15
15
  ````
16
+ ENV.CUCUMBER_ROOT = File.absolute_path('../', File.dirname(__FILE__));
16
17
  require "cucumber-sentences"
17
18
  `````
18
19
 
@@ -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.4'
5
+ s.version = '0.0.5'
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"
@@ -10,7 +10,7 @@ end
10
10
 
11
11
 
12
12
  Given(/^I change the domain to "([^"]*)"$/) do | domain_name |
13
- require 'support/helpers/domain'
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(File.absolute_path('../', File.dirname(__FILE__)), 'support/helpers/'+ type )
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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cucumber-sentences
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - DonkeyCode