Sha256: be96907947126fdbfddf5e315ea8091d1a07ac0abbcf758dd461a7f92bc0e995

Contents?: true

Size: 375 Bytes

Versions: 30

Compression:

Stored size: 375 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
      require_dependencies 'test/spec', :path => "test/test_config.rb"
      insert_test_suite_setup TESTSPEC_SETUP
    end
    
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
sinatra_more-0.3.23 generators/components/tests/testspec_test_gen.rb
sinatra_more-0.3.22 generators/components/tests/testspec_test_gen.rb
sinatra_more-0.3.21 generators/components/tests/testspec_test_gen.rb
sinatra_more-0.3.18 generators/components/tests/testspec_test_gen.rb
sinatra_more-0.3.16 generators/components/tests/testspec_test_gen.rb
sinatra_more-0.3.15 generators/components/tests/testspec_test_gen.rb
sinatra_more-0.3.14 generators/components/tests/testspec_test_gen.rb
sinatra_more-0.3.13 generators/components/tests/testspec_test_gen.rb
sinatra_more-0.3.12 generators/components/tests/testspec_test_gen.rb
sinatra_more-0.3.11 generators/components/tests/testspec_test_gen.rb