Sha256: f97e4cefe5e0aeeea544082d7cfad4cabb3ae4d7a74e6e9c4485d2332bd7d49c

Contents?: true

Size: 347 Bytes

Versions: 4

Compression:

Stored size: 347 Bytes

Contents

module SinatraMore
  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
      insert_require 'riot', :path => "test/test_config.rb"
      insert_test_suite_setup RIOT_SETUP
    end
    
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sinatra_more-0.3.10 generators/components/tests/riot_test_gen.rb
sinatra_more-0.3.9 generators/components/tests/riot_test_gen.rb
sinatra_more-0.3.8 generators/components/tests/riot_test_gen.rb
sinatra_more-0.3.7 generators/components/tests/riot_test_gen.rb