Sha256: ab9f9c9c663a32c3f3cf629bd0633c8e106bc9d279efd42cf21c9f490d6aef16
Contents?: true
Size: 1.29 KB
Versions: 1
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") page.should have_content('Fail') end end it "should add extensions to Evergreen" do visit('/awesome') page.should have_content('Totally awesome') end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
evergreen-1.0.0.rc | spec/evergreen_spec.rb |