Sha256: 46414196d226486a532dd614919b9be3e412f0627d85278c38f066d8351f73a3

Contents?: true

Size: 369 Bytes

Versions: 4

Compression:

Stored size: 369 Bytes

Contents

module SinatraMore
  module TestspecTestGen
    TESTSPEC_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/spec', :path => "test/test_config.rb"
      insert_test_suite_setup TESTSPEC_SETUP
    end
    
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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