Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
paperclip
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ikcrm_common
paperclip
Commits
58e3a979
Commit
58e3a979
authored
May 24, 2013
by
Jon Yurek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix feature error with 3.0.12
parent
acd34e03
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
Appraisals
+4
-4
features/step_definitions/rails_steps.rb
+9
-0
No files found.
Appraisals
View file @
58e3a979
#
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"
...
...
features/step_definitions/rails_steps.rb
View file @
58e3a979
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment