Sha256: cec6c014732993760ab886795ababd8393969a02ecc67d1a6ee5ab539f2d9924

Contents?: true

Size: 1.2 KB

Versions: 8

Compression:

Stored size: 1.2 KB

Contents

require File.join(File.dirname(__FILE__), "..", "test_helper")

Feature "Using Coulda", :testcase_class => Test::Unit::TestCase do
  in_order_to "perform lightweight integration/acceptance testing with Coulda"
  as_a "developer"
  i_want_to "have typical Coulda usage work"

  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"
    When "an event happens" do; end
    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
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
coulda-0.4.7 test/integration/using_coulda_test.rb
coulda-0.4.6 test/integration/using_coulda_test.rb
coulda-0.4.5 test/integration/using_coulda_test.rb
coulda-0.4.4 test/integration/using_coulda_test.rb
coulda-0.4.3 test/integration/using_coulda_test.rb
coulda-0.4.2 test/integration/using_coulda_test.rb
coulda-0.4.1 test/integration/using_coulda_test.rb
coulda-0.4.0 test/integration/using_coulda_test.rb