Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Fix specs broken by aruba changes #1939

Merged
merged 1 commit into from
Jul 29, 2015
Merged

Conversation

dgynn
Copy link
Contributor

@dgynn dgynn commented Jul 18, 2015

This PR fixes the specs broken by the deprecation of check_file_presence in the latest aruba. While I was in there I also cleaned up the other deprecation warnings from aruba, rspec, and active record.

@@ -20,6 +20,7 @@
config = YAML::load(IO.read(File.dirname(__FILE__) + '/database.yml'))
ActiveRecord::Base.logger = Logger.new(File.dirname(__FILE__) + "/debug.log")
ActiveRecord::Base.establish_connection(config['test'])
ActiveRecord::Base.raise_in_transactional_callbacks = true unless ActiveRecord::VERSION::STRING < "4.2"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line is too long. [103/80]

@dgynn
Copy link
Contributor Author

dgynn commented Jul 18, 2015

I've also updated the travis config to allow travis's bundler caching to take effect and to run the allow_failures rubies after the primary rubies. It looks like this will allow travis to run about 50% faster.

@@ -1,14 +1,11 @@
appraise "3.2" do
gem "rails", "~> 3.2.0"
gem "paperclip", :path => "../"
gem "rails", "~> 3.2.15"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd leave this as ~> 3.2.0, as bundler will anyway install latest.

@tute
Copy link
Contributor

tute commented Jul 29, 2015

Thank you very much for your work. Can you please address my only comment, squash the commits together into one with a good commit message, and rebase on top of latest master? I'll merge right after. Thank you again!

* update aruba methods for in_current_dir and check_file_presence
* switch rspec syntax from should to expect
* configure raise_in_transactional_callbacks if AR >= 4.2
* remove paperclip itself from Appraisal
This also updates Travis to use the default bundler (to enable caching) and to build primary rubies first
@dgynn
Copy link
Contributor Author

dgynn commented Jul 29, 2015

Thanks, @tute . Squashed, rebased, and back to green.

tute added a commit that referenced this pull request Jul 29, 2015
Fix specs broken by aruba changes
@tute tute merged commit c819d5d into thoughtbot:master Jul 29, 2015
@tute
Copy link
Contributor

tute commented Jul 29, 2015

That's great, thank you! 👏 👍

@dgynn dgynn deleted the specs_cleanup branch August 21, 2015 17:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants