Sha256: 1a345577288543ec754870c2680a9573abcca449f8a9830db52e455aeea763ee

Contents?: true

Size: 751 Bytes

Versions: 6

Compression:

Stored size: 751 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
      report "I use some helper" do
        some_helper
      end
      assert_equal 1, some_helper
    end
  end

  story "Pending story"
end

Version data entries

6 entries across 6 versions & 3 rubygems

Version Path
citrusbyte-stories-0.1.1 test/all_test.rb
citrusbyte-stories-0.1.2 test/all_test.rb
coryodaniel-stories-0.1.4 test/all_test.rb
stories-0.1.3 test/all_test.rb
stories-0.1.2 test/all_test.rb
stories-0.1.1 test/all_test.rb