Sha256: d52e908986da8520dc4f7c1fd31d34791ffa10308ebaf9ba1800fa9486dd9f49
Contents?: true
Size: 660 Bytes
Versions: 4
Compression:
Stored size: 660 Bytes
Contents
require File.dirname(__FILE__) + "/../lib/stories" require File.dirname(__FILE__) + "/../lib/stories/runner" # Use the story runner by default. Test::Unit::AutoRunner::RUNNERS[:console] = Proc.new {|r| Stories::Runner } class UserStoryTest < Test::Unit::TestCase story "As a user I want to create stories so I can test if they pass" do setup do @user = "valid user" end scenario "A valid user" do assert_equal "valid user", @user end end story "As a user I want helpers so that I can extract" do def some_helper 1 end scenario "A call to a helper" do assert_equal 1, some_helper end end end
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
citrusbyte-stories-0.0.8 | test/all_test.rb |
citrusbyte-stories-0.0.9 | test/all_test.rb |
stories-0.0.8 | test/all_test.rb |
stories-0.0.9 | test/all_test.rb |