cucumber_steps 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 10cb4c2203d3df16dd2a65008dc5693125cc9f4d
4
- data.tar.gz: e413e8198aee140cf3a40a2ce0bd67698eb06d16
3
+ metadata.gz: 97cf04ba5915fa17f53a43afcb812e6c5e9ae1d8
4
+ data.tar.gz: 49ee7a85bf7bcf1b5aee73287f76878ed2367265
5
5
  SHA512:
6
- metadata.gz: 3c015ae1dd4c2154aed89cca87fee41800908f0186fc5d7f9b8250a6adfb870c6df0720b30528db1c1d79af8cb5ceaf34e23bd4d38826d222ce6eacb06925956
7
- data.tar.gz: 5b006f1961491378dfb06bdbffbb9eda3b4596410db0d68bffd4a2260e1bc3206e547774ac10db9e3e60315b387d725a3df1f98d2a970f351382108a44c17662
6
+ metadata.gz: fc57309d70146736269128da65a11f1e125c5cc82701c5d9a28befa9209d96ef1b6ad9870a116a85f7a17593f3e0c7b70bdb995c35b505d7510f529e43e12c58
7
+ data.tar.gz: 28fcbb6ac2a71c5d53a676f42f2514b1d414c0b7966007e8fce2d7426b60ad0ec69eddd6bfea1b8b5da621d39e8919567fea0ee98c44d8fd43ae319de4652814
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.4
1
+ 0.0.5
@@ -20,13 +20,11 @@ Gem::Specification.new do |spec|
20
20
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
21
21
  spec.require_paths = ["lib"]
22
22
 
23
- spec.add_development_dependency "bundler", "~> 1.6"
24
- spec.add_development_dependency "rake"
23
+ spec.add_development_dependency 'bundler', '>= 1.6'
24
+ spec.add_development_dependency 'rake'
25
25
 
26
26
  spec.add_dependency 'watir'
27
27
  spec.add_dependency 'rspec'
28
28
  spec.add_dependency 'cucumber'
29
29
 
30
- spec.add_development_dependency 'hirb'
31
-
32
30
  end
@@ -4,7 +4,7 @@ module CucumberSteps::Browser::ScopeHandler
4
4
  target_scope = self
5
5
 
6
6
  locating_scopes.each do |location_def|
7
- target_scope = location_def.call(target_scope)
7
+ target_scope = location_def[1].call(target_scope)
8
8
  end
9
9
 
10
10
  target_scope
@@ -5,6 +5,12 @@ And /^I click to the "([^"]+)" field that is near to the "([^"]+)" label$/i do |
5
5
  element_to_click.click
6
6
  end
7
7
 
8
+ And /^I press the (\w+) with the following text: (.*)$/i do |tag_name, text|
9
+ element_to_click = browser.current_scope.element(text: text, tag_name: tag_name).when_present
10
+ element_to_click.hover rescue nil
11
+ element_to_click.click
12
+ end
13
+
8
14
  And /^I press the "([^"]+)" button$/i do |button_text|
9
15
  element_to_click = browser.current_scope.element(text: button_text).when_present
10
16
  element_to_click.hover rescue nil
@@ -13,7 +13,7 @@ module CucumberSteps::ENVFetcher
13
13
  end
14
14
 
15
15
  def close_browser_at_exit?
16
- not lookup_for(false, 'CLOSE_BROWSER_AT_EXIT', 'BROWSER_CLOSE_AT_EXIT', 'CLOSE_BROWSER')
16
+ not lookup_for(false, 'CLOSE_BROWSER_AT_EXIT', 'BROWSER_CLOSE_AT_EXIT','CLOSE_BROWSER')
17
17
  end
18
18
 
19
19
  def browser_name
@@ -23,7 +23,7 @@ module CucumberSteps::ENVFetcher
23
23
  protected
24
24
 
25
25
  def lookup_for(boolean, *env_keys)
26
- formatted_env(env_keys).any? { |k, v| v == boolean }
26
+ formatted_env(filtered_env(env_keys)).any? { |k, v| v == boolean }
27
27
  end
28
28
 
29
29
  def lookup_value_by(*env_keys)
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cucumber_steps
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
  - Adam Luzsi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-21 00:00:00.000000000 Z
11
+ date: 2015-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.6'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.6'
27
27
  - !ruby/object:Gem::Dependency
@@ -80,20 +80,6 @@ dependencies:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
- - !ruby/object:Gem::Dependency
84
- name: hirb
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: '0'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- version: '0'
97
83
  description: collection of often used cucumber steps to avoid the violation of DRY
98
84
  principle
99
85
  email:
@@ -147,7 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
147
133
  version: '0'
148
134
  requirements: []
149
135
  rubyforge_project:
150
- rubygems_version: 2.2.2
136
+ rubygems_version: 2.4.8
151
137
  signing_key:
152
138
  specification_version: 4
153
139
  summary: often used generic cucumber steps for DRY