Sha256: 8a9981ebcb133393c33fc70feaab3ca6395e3d252ab8f2172effa3de16429be1

Contents?: true

Size: 335 Bytes

Versions: 4

Compression:

Stored size: 335 Bytes

Contents

module Sinatra
  module RiotTestGen
    RIOT_SETUP = <<-TEST
\nclass Riot::Situation
  include Rack::Test::Methods
  
  def app
    CLASS_NAME.tap { |app| app.set :environment, :test }
  end
end
TEST

    def setup_test
      require_dependencies 'riot', :env => :testing
      insert_test_suite_setup RIOT_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/riot_test_gen.rb
darkhelmet-sinatra_more-0.3.35 generators/components/tests/riot_test_gen.rb
darkhelmet-sinatra_more-0.3.34 generators/components/tests/riot_test_gen.rb
darkhelmet-sinatra_more-0.3.33 generators/components/tests/riot_test_gen.rb