Sha256: c6872fbbd05309a51ffcf5e3539743b0407a5f3ec5bb31566ee36745dee46b00

Contents?: true

Size: 303 Bytes

Versions: 5

Compression:

Stored size: 303 Bytes

Contents

module SinatraMore
  module RiotTestGen
    RIOT_SETUP = <<-TEST
\nclass Riot::Context
  include Rack::Test::Methods
  
  def app
    CLASS_NAME
  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

5 entries across 5 versions & 1 rubygems

Version Path
sinatra_more-0.3.4 generators/components/tests/riot_test_gen.rb
sinatra_more-0.3.3 generators/components/tests/riot_test_gen.rb
sinatra_more-0.3.2 generators/components/tests/riot_test_gen.rb
sinatra_more-0.3.1 generators/components/tests/riot_test_gen.rb
sinatra_more-0.3.0 generators/components/tests/riot_test_gen.rb