Sha256: 7597ddbd211a16abfbf4558598934ef6d5150f1bb6a69961c3a20782aa0de818

Contents?: true

Size: 369 Bytes

Versions: 4

Compression:

Stored size: 369 Bytes

Contents

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

def app
  CLASS_NAME.tap { |app| app.set :environment, :test }
end
TEST

    def setup_test
      insert_into_gemfile 'rspec', :require_as => 'spec', :env => :testing
      insert_test_suite_setup RSPEC_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/rspec_test_gen.rb
darkhelmet-sinatra_more-0.3.35 generators/components/tests/rspec_test_gen.rb
darkhelmet-sinatra_more-0.3.34 generators/components/tests/rspec_test_gen.rb
darkhelmet-sinatra_more-0.3.33 generators/components/tests/rspec_test_gen.rb