Sha256: 4d930bd3d76c3d5d684eabbc5ce8ff9b9a0a0515f0cdfe6dc0a002af7cee2dfa
Contents?: true
Size: 1.29 KB
Versions: 6
Compression:
Stored size: 1.29 KB
Contents
require 'spec_helper' describe Evergreen::Application do include Capybara::DSL it "should show a successful test run" do visit("/") click_link("testing_spec.js") page.should have_content("2 specs, 0 failures") end it "should show a successful test run for a coffeescript spec" do visit("/") click_link("coffeescript_spec.coffee") page.should have_content("2 specs, 0 failures") end it "should show errors for a failing spec" do visit("/") click_link("failing_spec.js") page.should have_content("2 specs, 1 failure") page.should have_content("Expected 'bar' to equal 'noooooo'.") end it "should run all specs" do visit("/") click_link("All") page.should have_content("18 specs, 3 failures") page.should have_content("Expected 'bar' to equal 'noooooo'.") end it "should run a spec inline" do visit("/") within('li', :text => 'testing_spec.js') do click_link("Run") page.should have_content('Pass') end end it "should run a failing spec inline" do visit("/") within('li', :text => 'failing_spec.js') do click_link("Run") begin page.should have_content('Fail') rescue # why you make me sad, Capybara webkit??? page.should have_content('Fail') end end end end
Version data entries
6 entries across 6 versions & 1 rubygems