require 'spec_helper' require 'capybara/util/save_and_open_page' require 'launchy' describe Capybara do describe ".save_page & .save_and_open_page" do before do @temp_file = mock("FILE") @temp_file.stub!(:write) @temp_file.stub!(:close) @html = <<-HTML