require 'spec_helper' require 'capybara/util/save_and_open_page' require 'launchy' describe Capybara do describe ".save_and_open_page" do before do @time = Time.new.strftime("%Y%m%d%H%M%S") @temp_file = mock("FILE") @temp_file.stub!(:write) @temp_file.stub!(:close) @html = <<-HTML