Sha256: 22123a9c384eec1dbb0578b8fb54a1e006c5bf2716d30e03d02ee994ffd1d63d
Contents?: true
Size: 888 Bytes
Versions: 3
Compression:
Stored size: 888 Bytes
Contents
require File.join(File.dirname(__FILE__), "..", "test_helper") require 'rr' # http://github.com/elight/coulda/issues#issue/1 class PendingScenariosTest < Test::Unit::TestCase include RR::Adapters::TestUnit context "A Scenario that has at least one pending step" do @@counter = 0 setup do @scenario = nil @feature_without_errors = Feature "with a pending scenario step #{@@counter}" do include RR::Adapters::TestUnit @scenario = Scenario "my scenario" do Given "this scenario that will call #pending because it has a pending step" do mock(self).pending end When "I have this pending step" Then "the test should pass anyway because I mocked pending" end @@counter += 1 end end should "pass" do assert(run_feature(@feature_without_errors)) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
coulda-0.5.3 | test/regression/pending_scenarios_test.rb |
coulda-0.5.2 | test/regression/pending_scenarios_test.rb |
coulda-0.5.1 | test/regression/pending_scenarios_test.rb |