Sha256: ad3dceefbd5e6e2fd7426d3155dbe7a181b2c6c0014b4f12370b816cc946ba1f
Contents?: true
Size: 564 Bytes
Versions: 2
Compression:
Stored size: 564 Bytes
Contents
module Padrino module Generators module Components module Tests module RspecGen RSPEC_SETUP = (<<-TEST).gsub(/^ {10}/, '') Spec::Runner.configure do |conf| conf.include Rack::Test::Methods end def app CLASS_NAME.tap { |app| app.set :environment, :test } end TEST def setup_test require_dependencies 'spec', :env => :testing insert_test_suite_setup RSPEC_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/rspec_test_gen.rb |
padrino-gen-0.1.0 | lib/generators/components/tests/rspec_test_gen.rb |