features/step_definitions/rails_steps.rb in paperclip-4.1.1 vs features/step_definitions/rails_steps.rb in paperclip-4.2.0

- old
+ new

@@ -6,22 +6,22 @@ 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 + gem "sqlite3", "1.3.8", :platform => [:ruby, :rbx] gem "activerecord-jdbcsqlite3-adapter", :platform => :jruby gem "jruby-openssl", :platform => :jruby gem "capybara" gem "gherkin" gem "aws-sdk" + gem "racc", :platform => :rbx + gem "rubysl", :platform => :rbx """ And I remove turbolinks And I empty the application.js file 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 @@ -195,10 +195,10 @@ pending "Not supported in Rails < #{version}" end end def transform_file(filename) - if File.exists?(filename) + if File.exist?(filename) content = File.read(filename) File.open(filename, "w") do |f| content = yield(content) f.write(content) end