1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

Remove leading whitespace.

This commit is contained in:
Gonzalo Rodríguez-Baltanás Díaz 2011-08-30 05:00:55 +03:00 committed by Jonas Nicklas and Kim Burgestrand
parent 7bcd0932bd
commit 1bb8cc505f

View file

@ -5,7 +5,7 @@ Dir[File.dirname(__FILE__)+'/session/*'].each { |group| require group }
shared_examples_for "session" do
def extract_results(session)
YAML.load Nokogiri::HTML(session.body).xpath("//pre[@id='results']").first.text
YAML.load Nokogiri::HTML(session.body).xpath("//pre[@id='results']").first.text.lstrip
end
after do