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:
parent
7bcd0932bd
commit
1bb8cc505f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue