lib/baldwin/installer.rb in baldwin-0.1.1 vs lib/baldwin/installer.rb in baldwin-0.2.0
- old
+ new
@@ -32,12 +32,10 @@
# comment_lines 'Rakefile', /RSpec::Core::RakeTask/
flag = 'RSpec::Core::RakeTask.new'
gsub_file 'Rakefile', /^(\s*)([^#|\n]*#{flag})/, '\1# \2'
append_to_file 'Rakefile', <<-EOS
-require 'baldwin/tasks'
-
RSpec::Core::RakeTask.new :spec => [ :'baldwin:env', :'baldwin:rails' ]
desc "Run specs for all supported rails versions"
task :all do
exec 'rake appraisal spec'
@@ -49,12 +47,10 @@
end
def add_baldwin_setup_to_spec_helper
prepend_to_file 'spec/spec_helper.rb', <<-EOS
require 'baldwin/setup'
-# require test helpers _after_ baldwin/setup
-# require 'rspec/rails'
-# require 'shoulda'
+# require test dependencies *after* baldwin/setup
EOS
end
def copy_example_rails_template
copy_file 'rails_template.rb', 'spec/rails/rails_template.rb'