Sha256: 936cfdd49e896636119d20fe9c132af9c2b16c97af0726dfc50114d9c1dafd97
Contents?: true
Size: 1.25 KB
Versions: 3
Compression:
Stored size: 1.25 KB
Contents
require 'spec_helper' describe Everqueen::Application do include Capybara::DSL it "should show a successful test run" do visit("/") click_link("testing_test.js") page.should have_content("2 tests of 2 passed, 0 failed.") end it "should show a successful test run for a coffeescript test" do visit("/") click_link("coffeescript_test.coffee") page.should have_content("2 tests of 2 passed, 0 failed.") end it "should show errors for a failing test" do visit("/") click_link("failing_test.js") page.should have_content("1 tests of 2 passed, 1 failed.") end it "should run all tests" do visit("/") click_link("All") sleep 2 page.should have_content("9 tests of 11 passed, 2 failed.") end it "should run a test inline" do visit("/") # "testing_test.js" within('#tests li:nth-child(6)') do click_link("Run") page.should have_content('Pass') end end it "should run a failing test inline" do visit("/") # "failing_test.js" within('#tests li:nth-child(2)') 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
everqueen-1.1.1 | spec/everqueen_spec.rb |
everqueen-1.1.0 | spec/everqueen_spec.rb |
everqueen-1.0.1 | spec/everqueen_spec.rb |