Skip to content

Commit

Permalink
Include Capybara#attach_file tests
Browse files Browse the repository at this point in the history
  • Loading branch information
halogenandtoast committed Jul 22, 2011
1 parent 0c8e347 commit 8cad037
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/integration/session_spec.rb
Expand Up @@ -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

0 comments on commit 8cad037

Please sign in to comment.