Sha256: bb2f6ed266b8332231625f6ad991e9cba66327a87b66232c53ff2464f87baa61

Contents?: true

Size: 339 Bytes

Versions: 20

Compression:

Stored size: 339 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
      require_dependencies 'riot', :env => :testing
      insert_test_suite_setup RIOT_SETUP
    end
    
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
sinatra_more-0.3.33 generators/components/tests/riot_test_gen.rb
sinatra_more-0.3.32 generators/components/tests/riot_test_gen.rb
sinatra_more-0.3.31 generators/components/tests/riot_test_gen.rb
sinatra_more-0.3.30 generators/components/tests/riot_test_gen.rb
sinatra_more-0.3.29 generators/components/tests/riot_test_gen.rb
sinatra_more-0.3.28 generators/components/tests/riot_test_gen.rb
sinatra_more-0.3.27 generators/components/tests/riot_test_gen.rb
sinatra_more-0.3.26 generators/components/tests/riot_test_gen.rb
sinatra_more-0.3.25 generators/components/tests/riot_test_gen.rb
sinatra_more-0.3.24 generators/components/tests/riot_test_gen.rb
sinatra_more-0.3.23 generators/components/tests/riot_test_gen.rb
sinatra_more-0.3.22 generators/components/tests/riot_test_gen.rb
sinatra_more-0.3.21 generators/components/tests/riot_test_gen.rb
sinatra_more-0.3.18 generators/components/tests/riot_test_gen.rb
sinatra_more-0.3.16 generators/components/tests/riot_test_gen.rb
sinatra_more-0.3.15 generators/components/tests/riot_test_gen.rb
sinatra_more-0.3.14 generators/components/tests/riot_test_gen.rb
sinatra_more-0.3.13 generators/components/tests/riot_test_gen.rb
sinatra_more-0.3.12 generators/components/tests/riot_test_gen.rb
sinatra_more-0.3.11 generators/components/tests/riot_test_gen.rb