Sha256: d50c22ef3635956a47c95def84aaa3fa83a800c5519c0436aae4ae3c23c61f36

Contents?: true

Size: 972 Bytes

Versions: 2

Compression:

Stored size: 972 Bytes

Contents

$LOAD_PATH.unshift(File.expand_path('../../../lib', __FILE__))
require 'rspec/rails/version'
# This needs to be installed on the system, as well as all of its rspec-2 deps
# - would be nicer if we could source them from the <repo>/pkg dirs
gem 'rspec-rails', :version => "'#{Rspec::Rails::Version::STRING}'"

initializer 'generators.rb', <<-CODE
module ExampleApp
  class Application < Rails::Application
    config.generators do |g|
      g.test_framework   :rspec,
                         :fixtures => false,
                         :integration_tool => false,
                         :routes => true,
                         :views => false
   
      g.integration_tool :rspec
    end
  end
end
CODE

run('gem bundle')

generate('rspec:install')
generate('model', 'thing', 'name:string')
generate('controller', 'widgets', 'index')
generate('integration_test', 'widgets')

run('rake db:migrate')
run('rake db:test:prepare')
run('script/rspec spec')
run('rake spec')

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rspec-rails-2.0.0.a3 example_app_template.rb
rspec-rails-2.0.0.a2 example_app_template.rb