Sha256: b1f88258fe7783eb1bd1b31fcc97ed40523e69c63714e04b6b34d749b5225847

Contents?: true

Size: 1.89 KB

Versions: 29

Compression:

Stored size: 1.89 KB

Contents

require File.expand_path('../helper.rb', __FILE__)


desc "test_unit: default no-changes'"
invoke 'hobo:test_framework', %w(test_unit)
file_exclude? 'config/application.rb',
              'config.generators do' ,
              'test_framework :test_unit'
test_value_eql? true

git_reset_app

desc "test_unit: don't generate fixtures'"
invoke 'hobo:test_framework', %w(test_unit --no-fixtures)
file_include? 'config/application.rb',
              'config.generators do' ,
              'test_framework :test_unit, :fixtures => false'
test_value_eql? true

git_reset_app

desc "shoulda application.rb injection"
invoke 'hobo:test_framework', %w(shoulda --no-update -q)
file_include? 'config/application.rb',
              'config.generators do' ,
              'test_framework :shoulda, :fixtures => true'
test_value_eql? true

desc "shoulda Gemfile injection"
file_include? 'Gemfile', %(gem "shoulda", :group => :test)
test_value_eql? true

git_reset_app

desc "rspec application.rb injection"
invoke 'hobo:test_framework', %w(rspec --no-update -q)
file_include? 'config/application.rb',
              'config.generators do' ,
              'test_framework :rspec, :fixtures => true',
              'fallbacks[:rspec] = :test_unit'
test_value_eql? true

desc "rspec Gemfile injection"
file_include? 'Gemfile',  %(gem "rspec-rails", ">= 2.0.0.beta.10", :group => :test)
test_value_eql? true

git_reset_app

desc "rspec_with_shoulda application.rb injection"
invoke 'hobo:test_framework', %w(rspec_with_shoulda --no-update -q)
file_include? 'config/application.rb',
              'config.generators do' ,
              'test_framework :rspec, :fixtures => true',
              'fallbacks[:rspec] = :test_unit'
test_value_eql? true

desc "rspec_with_shoulda Gemfile injection"
file_include? 'Gemfile', %(gem "rspec-rails", ">= 2.0.0.beta.10", :group => :test),
                       %(gem "shoulda", :group => :test)
test_value_eql? true


Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
hobo-1.3.0.pre19 test/irt/generators/test_framework.irt
hobo-1.3.0.pre18 test/irt/generators/test_framework.irt
hobo-1.3.0.pre16 test/irt/generators/test_framework.irt
hobo-1.3.0.pre15 test/irt/generators/test_framework.irt
hobo-1.3.0.pre14 test/irt/generators/test_framework.irt
hobo-1.3.0.pre13 test/irt/generators/test_framework.irt
hobo-1.3.0.pre12 test/irt/generators/test_framework.irt
hobo-1.3.0.pre11 test/irt/generators/test_framework.irt
hobo-1.3.0.pre10 test/irt/generators/test_framework.irt