Sha256: 55797103ad9e20702f3ba109b84408b7188978fbfbf8847092ceb8ee8e9d60de
Contents?: true
Size: 351 Bytes
Versions: 1
Compression:
Stored size: 351 Bytes
Contents
module SinatraMore 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 require_dependencies 'rspec', :env => :testing insert_test_suite_setup RSPEC_SETUP end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sinatra_more-0.3.23 | generators/components/tests/rspec_test_gen.rb |