# File lib/capybara/rspec/features.rb, line 12 def self.feature(*args, &block) options = if args.last.is_a?(Hash) then args.pop else {} end options[:capybara_feature] = true options[:type] = :request options[:caller] ||= caller args.push(options) describe(*args, &block) end
# File lib/capybara/spec/session.rb, line 7 def extract_results(session) YAML.load Nokogiri::HTML(session.body).xpath("//pre[@id='results']").first.text end