Sha256: 7b620c6e1f1882934fe03702b32100c1137fb293fc2a2b0e5821f2d33ea4de79
Contents?: true
Size: 589 Bytes
Versions: 2
Compression:
Stored size: 589 Bytes
Contents
module Padrino module Generators module Components module Tests module ShouldaGen SHOULDA_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/unit', 'shoulda', :env => :testing insert_test_suite_setup SHOULDA_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/shoulda_test_gen.rb |
padrino-gen-0.1.0 | lib/generators/components/tests/shoulda_test_gen.rb |