Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Include Capybara#attach_file tests

  • Loading branch information...
commit 8cad037afc034246d0d023786587c7c0c3ff517f 1 parent 0c8e347
@halogenandtoast halogenandtoast authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 spec/integration/session_spec.rb
View
5 spec/integration/session_spec.rb
@@ -86,6 +86,11 @@
@session = Capybara::Session.new(:reusable_webkit, TestApp)
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 with javascript support"
end
Please sign in to comment.
Something went wrong with that request. Please try again.