Skip to content

Commit

Permalink
Fix feature error with 3.0.12
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Yurek committed May 24, 2013
1 parent acd34e0 commit 58e3a97
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Appraisals
@@ -1,7 +1,7 @@
# 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"
Expand Down
9 changes: 9 additions & 0 deletions features/step_definitions/rails_steps.rb
Expand Up @@ -3,6 +3,7 @@
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"
Expand All @@ -20,6 +21,14 @@
}
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
Expand Down

0 comments on commit 58e3a97

Please sign in to comment.