Sha256: 0c9e29e6a22f83c306b1a1f3a37952502686566c5f4be221a75c06dea66da609

Contents?: true

Size: 316 Bytes

Versions: 7

Compression:

Stored size: 316 Bytes

Contents

module SinatraMore
  module RspecTestGen
    RSPEC_SETUP = <<-TEST
\nSpec::Runner.configure do |conf|
  conf.include Rack::Test::Methods
end

def app
  CLASS_NAME
end
TEST

    def setup_test
      insert_require 'spec', :path => "test/test_config.rb"
      insert_test_suite_setup RSPEC_SETUP
    end
    
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
sinatra_more-0.3.6 generators/components/tests/rspec_test_gen.rb
sinatra_more-0.3.5 generators/components/tests/rspec_test_gen.rb
sinatra_more-0.3.4 generators/components/tests/rspec_test_gen.rb
sinatra_more-0.3.3 generators/components/tests/rspec_test_gen.rb
sinatra_more-0.3.2 generators/components/tests/rspec_test_gen.rb
sinatra_more-0.3.1 generators/components/tests/rspec_test_gen.rb
sinatra_more-0.3.0 generators/components/tests/rspec_test_gen.rb