From 8cad037afc034246d0d023786587c7c0c3ff517f Mon Sep 17 00:00:00 2001 From: Matthew Mongeau Date: Fri, 22 Jul 2011 10:41:50 -0400 Subject: [PATCH] Include Capybara#attach_file tests --- spec/integration/session_spec.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spec/integration/session_spec.rb b/spec/integration/session_spec.rb index e8c4f75..b3e6cad 100644 --- a/spec/integration/session_spec.rb +++ b/spec/integration/session_spec.rb @@ -86,6 +86,11 @@ describe Capybara::Session, "with TestApp" do @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