Sha256: e9b02168c888850d1ab4b2d900dde8732850c688913eb9a8a015c6232b064b1a

Contents?: true

Size: 403 Bytes

Versions: 3

Compression:

Stored size: 403 Bytes

Contents

require "webrat"
require "rack/test"
require "stories"
require "stories/runner"

Webrat.configure do |config|
  config.mode = :rack
end

class Test::Unit::TestCase
  include Rack::Test::Methods
  include Webrat::Methods
  include Webrat::Matchers
  include Stories::Webrat

  def app
    Cuba
  end
end

module Cuba
  def self.test(name, &block)
    Test::Unit::TestCase.context(name, &block)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cuba-0.0.5 lib/cuba/test.rb
cuba-0.0.4 lib/cuba/test.rb
cuba-0.0.3 lib/cuba/test.rb