Sha256: 5af852bd7f3610c7b8e9fa63e758d2b35f04e2af8644a8fdd846e42cf636027d

Contents?: true

Size: 1.86 KB

Versions: 25

Compression:

Stored size: 1.86 KB

Contents

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.5.0", :group => [:test, :development])
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.5.0", :group => [:test, :development]),
                       %(gem "shoulda", :group => :test)
test_value_eql? true


Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
hobo-2.1.1 test/irt/generators/test_framework.irt
hobo-2.1.0 test/irt/generators/test_framework.irt
hobo-2.1.0.pre4 test/irt/generators/test_framework.irt
hobo-2.1.0.pre3 test/irt/generators/test_framework.irt
hobo-2.1.0.pre2 test/irt/generators/test_framework.irt
hobo-2.1.0.pre1 test/irt/generators/test_framework.irt
hobo-2.0.1 test/irt/generators/test_framework.irt
hobo-2.0.0 test/irt/generators/test_framework.irt
hobo-2.0.0.pre10 test/irt/generators/test_framework.irt
hobo-2.0.0.pre9 test/irt/generators/test_framework.irt
hobo-2.0.0.pre8 test/irt/generators/test_framework.irt
hobo-2.0.0.pre7 test/irt/generators/test_framework.irt
hobo-2.0.0.pre6 test/irt/generators/test_framework.irt
hobo-2.0.0.pre5 test/irt/generators/test_framework.irt
hobo-2.0.0.pre4 test/irt/generators/test_framework.irt
hobo-2.0.0.pre3 test/irt/generators/test_framework.irt
hobo-2.0.0.pre2 test/irt/generators/test_framework.irt
hobo-2.0.0.pre1 test/irt/generators/test_framework.irt
hobo-1.4.0.pre8 test/irt/generators/test_framework.irt
hobo-1.4.0.pre7 test/irt/generators/test_framework.irt