features/step_definitions/rails_steps.rb in paperclip-3.4.2 vs features/step_definitions/rails_steps.rb in paperclip-3.5.0
- old
+ new
@@ -1,10 +1,11 @@
Given /^I generate a new rails application$/ do
steps %{
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"
gem "rails", "#{framework_version}"
gem "sqlite3", :platform => :ruby
@@ -16,9 +17,17 @@
"""
And I configure the application to use "paperclip" from this project
And I reset Bundler environment variable
And I successfully run `bundle install --local`
}
+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