Sha256: f70ec4d598dbcbc2e1451990732c0145ef58b9d4cc7c48c6dea55d9c7d1461a9

Contents?: true

Size: 365 Bytes

Versions: 4

Compression:

Stored size: 365 Bytes

Contents

module Sinatra
  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', :env => :testing
      insert_test_suite_setup SHOULDA_SETUP
    end
    
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
darkhelmet-sinatra_more-0.3.36 generators/components/tests/shoulda_test_gen.rb
darkhelmet-sinatra_more-0.3.35 generators/components/tests/shoulda_test_gen.rb
darkhelmet-sinatra_more-0.3.34 generators/components/tests/shoulda_test_gen.rb
darkhelmet-sinatra_more-0.3.33 generators/components/tests/shoulda_test_gen.rb