Skip to content

Commit

Permalink
Add Rails 4.2 to Appraisals
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Yurek committed Dec 8, 2014
1 parent 679c1cf commit b589d5a
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 4 deletions.
7 changes: 6 additions & 1 deletion Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ appraise "4.0" do
end

appraise "4.1" do
gem "rails", "~> 4.1.0.beta"
gem "rails", "~> 4.1.0"
gem "paperclip", :path => "../"
end

appraise "4.2" do
gem "rails", "~> 4.2.0.rc2"
gem "paperclip", :path => "../"
end
2 changes: 1 addition & 1 deletion gemfiles/4.1.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ gem "activerecord-jdbcsqlite3-adapter", :platforms => :jruby
gem "rubysl", :platforms => :rbx
gem "racc", :platforms => :rbx
gem "pry"
gem "rails", "~> 4.1.0.beta"
gem "rails", "~> 4.1.0"
gem "paperclip", :path => "../"

group :development, :test do
Expand Down
19 changes: 19 additions & 0 deletions gemfiles/4.2.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "sqlite3", "1.3.8", :platforms => :ruby
gem "jruby-openssl", :platforms => :jruby
gem "activerecord-jdbcsqlite3-adapter", :platforms => :jruby
gem "rubysl", :platforms => :rbx
gem "racc", :platforms => :rbx
gem "pry"
gem "rails", "~> 4.2.0.rc2"
gem "paperclip", :path => "../"

group :development, :test do
gem "mime-types", "~> 1.16"
gem "builder"
end

gemspec :path => "../"
4 changes: 2 additions & 2 deletions spec/support/matchers/have_column.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

match do |columns|
column = columns.detect{|column| column.name == column_name }
column && column.default == @default
column && column.default.to_s == @default.to_s
end

failure_message_for_should do |columns|
"expected to find #{column_name}, default #{@default} in #{columns.map{|column| [column.name, column.default] }}"
"expected to find '#{column_name}', default '#{@default}' in #{columns.map{|column| [column.name, column.default] }}"
end
end

0 comments on commit b589d5a

Please sign in to comment.