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 CHANGED
@@ -1 +1 @@
1
- 0.0.15
1
+ 0.0.16
@@ -24,7 +24,7 @@ end
24
24
 
25
25
  Then /^show me the page text$/ do
26
26
  IO.popen("html2text", "w+") do |io|
27
- io.puts response.body
27
+ io.puts page.body
28
28
  io.close_write
29
29
  puts io.readlines
30
30
  end
@@ -1,4 +1,4 @@
1
- When /^I fill in the #{qc} row, #{qc} column in (.+?) with #{qc}$/ do |row, column, path, value|
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 #{qc} in the (\w+) data row of (.+)$/ do |value, ordinal, path|
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
 
@@ -1,4 +1,10 @@
1
1
  module Capybara
2
+ class Session
3
+ def current_path
4
+ URI.parse(current_url).path
5
+ end
6
+ end
7
+
2
8
  class Node
3
9
  def html
4
10
  raise NotImplementedError
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 15
9
- version: 0.0.15
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-13 00:00:00 +01:00
17
+ date: 2010-05-18 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency