Sha256: 63c9d19b0d749aa30fe78be9d7955efb9e4d20f3019d0515382431b8f5749233
Contents?: true
Size: 579 Bytes
Versions: 2
Compression:
Stored size: 579 Bytes
Contents
module Padrino module Generators module Components module Tests module TestspecGen TESTSPEC_SETUP = (<<-TEST).gsub(/^ {10}/, '') class Test::Unit::TestCase include Rack::Test::Methods def app CLASS_NAME.tap { |app| app.set :environment, :test } end end TEST def setup_test require_dependencies 'test/spec', :path => "test/test_config.rb" insert_test_suite_setup TESTSPEC_SETUP end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
padrino-gen-0.1.1 | lib/generators/components/tests/testspec_test_gen.rb |
padrino-gen-0.1.0 | lib/generators/components/tests/testspec_test_gen.rb |