Sha256: 92f3cbe7cb28662bf790fabbb698813259c8ae524fd58d01f75d818b8e6dc36f

Contents?: true

Size: 305 Bytes

Versions: 2

Compression:

Stored size: 305 Bytes

Contents

module SinatraMore
  module RiotTestGen
    RIOT_SETUP = <<-TEST
\nclass Riot::Situation
  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

2 entries across 2 versions & 1 rubygems

Version Path
sinatra_more-0.3.6 generators/components/tests/riot_test_gen.rb
sinatra_more-0.3.5 generators/components/tests/riot_test_gen.rb