Sha256: bd68140a5263738446149b27d43eea25760d93730a8c92312ddf9015311d2104
Contents?: true
Size: 1.22 KB
Versions: 5
Compression:
Stored size: 1.22 KB
Contents
require "spec_helper" feature "testing with teabag in the console", aruba: true do scenario "gives me the expected results" do run_simple("bundle exec teabag -r ../../spec/teabag_env --suite=default app/assets/javascripts/integration/integration_spec.coffee", false) assert_partial_output("..F.*.", all_output) assert_partial_output("testing console output", all_output) assert_partial_output("6 examples, 1 failure, 1 pending", all_output) assert_partial_output('teabag -s default --filter="Integration tests allows failing specs."', all_output) expected = <<-OUTPUT Pending: Integration tests pending is allowed # Not yet implemented Failures: 1) Integration tests allows failing specs Failure/Error: Expected true to be false. OUTPUT assert_partial_output(expected, all_output) end scenario "displays coverage information" do pending("needs istanbul to be installed") unless Teabag::Instrumentation.which('istanbul') run_simple("bundle exec teabag -r ../../spec/teabag_env --suite=default app/assets/javascripts/integration/integration_spec.coffee --coverage-reports=text", false) assert_partial_output("| % Stmts |% Branches | % Funcs | % Lines |", all_output) end end
Version data entries
5 entries across 5 versions & 1 rubygems