Commit 58e3a979 by Jon Yurek

Fix feature error with 3.0.12

parent acd34e03
# appraise "3.0" do
# gem "rails", "~> 3.0.15"
# gem "paperclip", :path => "../"
# end
appraise "3.0" do
gem "rails", "~> 3.0.15"
gem "paperclip", :path => "../"
end
appraise "3.1" do
gem "rails", "~> 3.1.6"
......
......@@ -3,6 +3,7 @@ Given /^I generate a new rails application$/ do
When I run `bundle exec #{new_application_command} #{APP_NAME} --skip-bundle`
And I cd to "#{APP_NAME}"
And I turn off class caching
And I fix the application.rb for 3.0.12
And I write to "Gemfile" with:
"""
source "http://rubygems.org"
......@@ -20,6 +21,14 @@ Given /^I generate a new rails application$/ do
}
end
Given "I fix the application.rb for 3.0.12" do
in_current_dir do
File.open("config/application.rb", "a") do |f|
f << "ActionController::Base.config.relative_url_root = ''"
end
end
end
Given /^I run a rails generator to generate a "([^"]*)" scaffold with "([^"]*)"$/ do |model_name, attributes|
step %[I successfully run `bundle exec #{generator_command} scaffold #{model_name} #{attributes}`]
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment