Sha256: 95a8d6e606cb5a5ee6bdba70786a731c60fe7996ecadf2094d3e0d480bc7221c
Contents?: true
Size: 1.55 KB
Versions: 3
Compression:
Stored size: 1.55 KB
Contents
require File.join(File.dirname(__FILE__), "..", "test_helper") require 'rr' Feature "Using Coulda", :testcase_class => Test::Unit::TestCase do include RR::Adapters::TestUnit in_order_to "perform lightweight integration/acceptance testing with Coulda" as_a "developer" i_want_to "have typical Coulda usage work" def some_method; end def prove_methods_from_then_invokes_method_on_feature assert true end Scenario "A pending scenario with a Given/When/Then without a block" do Given "this scenario which should be pending" do mock(self).pending(anything, anything).times(1) end When "an event happens" Then "should not error/fail because it is pending" do; end end Scenario "A scenario without a When" do Given "a scenario calling a Feature instance method" do; end Then "should pass if the method does not fail/error" do prove_methods_from_then_invokes_method_on_feature end end Scenario "that is live" do Given "no prerequisites" do; end When "no events" do; end Then "should pass" do; end end Scenario "A scenario with a lot of Ands" do Given "no prerequisites" do; end And "some more lack of prerequisites" do; end When "something doesn't happen" do; end And "something else doesn't happen" do; end Then "something else" do; end And "should pass" do; end end Scenario "A scenario that invokes a method by name" do Given "a method" do mock(self).some_method end When :some_method Then "'some_method' should have been called" do; end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
coulda-0.5.3 | test/integration/using_coulda_test.rb |
coulda-0.5.2 | test/integration/using_coulda_test.rb |
coulda-0.5.1 | test/integration/using_coulda_test.rb |