sandwich 0.0.15 → 0.0.16
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.
- data/VERSION +1 -1
- data/lib/sandwich/cucumber/debug_steps.rb +1 -1
- data/lib/sandwich/cucumber/table_steps.rb +2 -2
- data/lib/sandwich/ext/capybara.rb +6 -0
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.16
|
@@ -1,4 +1,4 @@
|
|
1
|
-
When /^I fill in the
|
1
|
+
When /^I fill in the "([^"]+)" row, "([^"]+)" column in (.+?) with "([^"]+)"$/ do |row, column, path, value|
|
2
2
|
selector = xpath(selector_for(path))
|
3
3
|
_, column_index = page.find(:xpath, "#{selector}//tr", :text => /#{column}/).
|
4
4
|
all(:xpath, "*").each_with_index.find { |e, i| e.text == column }
|
@@ -7,7 +7,7 @@ When /^I fill in the #{qc} row, #{qc} column in (.+?) with #{qc}$/ do |row, colu
|
|
7
7
|
page.locate(:xpath, "((#{selector}//tr)[#{row_index + 1}]/td)[#{column_index + 1}]/input").set(value)
|
8
8
|
end
|
9
9
|
|
10
|
-
Then /^I should see
|
10
|
+
Then /^I should see "([^"]+)" in the (\w+) data row of (.+)$/ do |value, ordinal, path|
|
11
11
|
page.should have_xpath("(#{xpath(selector_for(path))}//tr[td])[#{ordinal.to_i}]", :text => value)
|
12
12
|
end
|
13
13
|
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 16
|
9
|
+
version: 0.0.16
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- David Leal
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-05-
|
17
|
+
date: 2010-05-18 00:00:00 +01:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|