Sha256: 5df7951c115f0a0de04357f145f668cfd03192048099c6d10cb893a7b7fb5e2f

Contents?: true

Size: 377 Bytes

Versions: 4

Compression:

Stored size: 377 Bytes

Contents

module SinatraMore
  module ShouldaTestGen
    SHOULDA_SETUP = <<-TEST
\nclass Test::Unit::TestCase
  include Rack::Test::Methods
  
  def app
    CLASS_NAME.tap { |app| app.set :environment, :test }
  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

4 entries across 4 versions & 1 rubygems

Version Path
sinatra_more-0.3.10 generators/components/tests/shoulda_test_gen.rb
sinatra_more-0.3.9 generators/components/tests/shoulda_test_gen.rb
sinatra_more-0.3.8 generators/components/tests/shoulda_test_gen.rb
sinatra_more-0.3.7 generators/components/tests/shoulda_test_gen.rb