Sha256: 3a8bb30f12d8ccaf8c90233538ea630071ac0918918ec2c4e2a17cdf766a1350

Contents?: true

Size: 335 Bytes

Versions: 7

Compression:

Stored size: 335 Bytes

Contents

module SinatraMore
  module ShouldaTestGen
    SHOULDA_SETUP = <<-TEST
\nclass Test::Unit::TestCase
  include Rack::Test::Methods
  
  def app
    CLASS_NAME
  end
end
TEST

    def setup_test
      insert_require 'test/unit', 'shoulda', :path => "test/test_config.rb"
      insert_test_suite_setup SHOULDA_SETUP
    end
    
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
sinatra_more-0.3.6 generators/components/tests/shoulda_test_gen.rb
sinatra_more-0.3.5 generators/components/tests/shoulda_test_gen.rb
sinatra_more-0.3.4 generators/components/tests/shoulda_test_gen.rb
sinatra_more-0.3.3 generators/components/tests/shoulda_test_gen.rb
sinatra_more-0.3.2 generators/components/tests/shoulda_test_gen.rb
sinatra_more-0.3.1 generators/components/tests/shoulda_test_gen.rb
sinatra_more-0.3.0 generators/components/tests/shoulda_test_gen.rb