Sha256: 01b10694ba5cbeb26168838b74036b525595bfe0352de937767df5512cdad0cf

Contents?: true

Size: 300 Bytes

Versions: 2

Compression:

Stored size: 300 Bytes

Contents

require "rubygems"
require "contest"

class Test::Unit::TestCase
  class << self
    alias scenario test

    def story(name, &block)
      $stories << name
      context(name, &block)
    end
  end
end

$stories = []

at_exit do
  unless $stories.empty?
    puts $stories.join("\n"); puts
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
citrusbyte-stories-0.0.2 lib/stories.rb
citrusbyte-stories-0.0.3 lib/stories.rb