mirror of
https://github.com/thoughtbot/capybara-webkit
synced 2023-03-27 23:22:28 -04:00
Include Capybara#attach_file tests
This commit is contained in:
parent
0c8e347b61
commit
8cad037afc
1 changed files with 5 additions and 0 deletions
|
@ -86,6 +86,11 @@ describe Capybara::Session, "with TestApp" do
|
||||||
@session = Capybara::Session.new(:reusable_webkit, TestApp)
|
@session = Capybara::Session.new(:reusable_webkit, TestApp)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def extract_results(session)
|
||||||
|
YAML.load Nokogiri::HTML(session.body).xpath("//pre[@id='results']").first.text
|
||||||
|
end
|
||||||
|
|
||||||
|
it_should_behave_like 'attach_file'
|
||||||
# it_should_behave_like "session"
|
# it_should_behave_like "session"
|
||||||
# it_should_behave_like "session with javascript support"
|
# it_should_behave_like "session with javascript support"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue