Sha256: ad4dabbd361812739ddb3352bc6ee716d9f838ca058deda669293bd703e0d602

Contents?: true

Size: 371 Bytes

Versions: 10

Compression:

Stored size: 371 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
      require_dependencies 'test/unit', 'shoulda', :group => :testing
      insert_test_suite_setup SHOULDA_SETUP
    end
    
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
sinatra_more-0.3.43 generators/components/tests/shoulda_test_gen.rb
sinatra_more-0.3.42 generators/components/tests/shoulda_test_gen.rb
sinatra_more-0.3.41 generators/components/tests/shoulda_test_gen.rb
sinatra_more-0.3.40 generators/components/tests/shoulda_test_gen.rb
sinatra_more-0.3.39 generators/components/tests/shoulda_test_gen.rb
sinatra_more-0.3.38 generators/components/tests/shoulda_test_gen.rb
sinatra_more-0.3.37 generators/components/tests/shoulda_test_gen.rb
sinatra_more-0.3.36 generators/components/tests/shoulda_test_gen.rb
sinatra_more-0.3.35 generators/components/tests/shoulda_test_gen.rb
sinatra_more-0.3.34 generators/components/tests/shoulda_test_gen.rb