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.3 test/irt/generators/test_framework.irt
hobo-1.3.2 test/irt/generators/test_framework.irt
hobo-1.3.1 test/irt/generators/test_framework.irt
hobo-1.3.0 test/irt/generators/test_framework.irt
hobo-1.3.0.RC4 test/irt/generators/test_framework.irt
hobo-1.3.0.RC3 test/irt/generators/test_framework.irt
hobo-1.3.0.RC2 test/irt/generators/test_framework.irt
hobo-1.3.0.RC1 test/irt/generators/test_framework.irt
hobo-1.3.0.RC test/irt/generators/test_framework.irt
hobo-1.3.0.pre31 test/irt/generators/test_framework.irt
hobo-1.3.0.pre29 test/irt/generators/test_framework.irt
hobo-1.3.0.pre28 test/irt/generators/test_framework.irt
hobo-1.3.0.pre27 test/irt/generators/test_framework.irt
hobo-1.3.0.pre26 test/irt/generators/test_framework.irt
hobo-1.3.0.pre25 test/irt/generators/test_framework.irt
hobo-1.3.0.pre24 test/irt/generators/test_framework.irt
hobo-1.3.0.pre23 test/irt/generators/test_framework.irt
hobo-1.3.0.pre22 test/irt/generators/test_framework.irt
hobo-1.3.0.pre21 test/irt/generators/test_framework.irt
hobo-1.3.0.pre20 test/irt/generators/test_framework.irt