Commit Graph

31 Commits

Author SHA1 Message Date
Elliot Winkler 65154bb35d Upgrade Rake
[ci skip]
2018-01-25 21:37:06 -06:00
Elliot Winkler 96a6eb2cfe Upgrade Appraisal to 2.2.0 2018-01-24 00:30:10 -06:00
Elliot Winkler cb90edf632 Upgrade Rake so that using Zeus will work 2018-01-23 21:52:35 -06:00
Elliot Winkler 006b33407d Update from Rails 5.0.4 to 5.0.6 2017-09-17 19:18:50 -05:00
Elliot Winkler c288843e39 Run tests under Rails 5.1 on Travis 2017-09-17 18:28:37 -05:00
Elliot Winkler 79f2a20993 Don't autorequire Zeus when loading Rails for tests
Zeus has a lot of warnings and they appear for each test that is run.
2017-09-17 17:01:50 -05:00
Elliot Winkler 3b0c872fca Update rspec & rspec-rails to 3.6.x
This upgrade is mainly so we can use --only-failures which was
introduced way back in RSpec 3.3.
2017-09-17 17:01:50 -05:00
Elliot Winkler 68a42a7254 Update zeus & pry so that we can use Zeus again 2017-09-17 17:01:50 -05:00
Gui Albuk 31a8ab4af8 Remove TravisCI support for Ruby 2.0 and 2.1 and Rails 4.0 and 4.1
Remove TravisCI support for Ruby 2.0 and 2.1

Merge Appraisal Gemfiles for different Ruby versions

Remove unused variable in Appraisals file
2017-09-17 17:01:50 -05:00
Gui Albuk 2e1071cc4d Fix dependecies for different Ruby versions 2017-09-17 17:01:50 -05:00
Gui Albuk f9dfa989bb Update Rails versions to 5.0.4 and 4.2.9 2017-09-17 17:01:50 -05:00
Gui Albuk 1fcdcb3d5f Add missing json dependency for rdoc in Rails 4.1 and 4.2 failing in TravisCI 2017-09-17 17:01:50 -05:00
Gui Albuk 7ed16fe9d2 Add jbuilder to rails 4.2 and 5.0 tests 2017-09-17 17:01:50 -05:00
Gui Albuk f84e566b95 Fetch pry gem using HTTPS 2017-09-17 17:01:50 -05:00
Elliot Winkler f1da108dd1 Upgrade Rake
This is necessary in order to use Zeus, since Rake is loaded before
Bundler (and so if the version of Rake installed locally and the version
in the Gemfile differ then Bundler will complain).
2016-01-27 20:26:21 -07:00
Elliot Winkler 3ee734bb7e Speed up running unit tests with Zeus
This is an effort to vastly decrease the time it takes to run a single
unit test file and therefore increase productivity and happiness for
people working on this project.

If you want to run a unit test file, now you can use `zeus rspec`
instead of `rspec` -- assuming you run `zeus start` first -- and it will
run a LOT faster.

Because test files tend to have long file paths, you can even use a
shorter version of those paths. So instead of saying:

    zeus rspec spec/unit/shoulda/matchers/active_record/validate_uniqueness_of_matcher_spec.rb

you can say:

    zeus rspec active_record/validate_uniqueness_of_matcher_spec.rb
2015-12-13 20:22:21 -07:00
Elliot Winkler 07fe5eb6c8 Upgrade rspec 2015-10-07 23:32:51 -06:00
Elliot Winkler dcf2f4a1be Bump Appraisal to 2.1.0
Why:

* At some point a while back, Appraisal introduced a bug fix that made
  it possible to run `rspec` through `appraisal` and pass the `-e`
  option to target certain tests. This makes life much easier.
* It's been a while since we've upgraded Appraisal anyway.
2015-09-25 17:45:33 -06:00
Elliot Winkler 3c2fe128fe Update appraisal gemfiles 2015-09-23 23:59:18 -06:00
takiy33 05a11ae90c Use pry-byebug instead of pry-nav 2015-04-02 20:13:33 -06:00
Elliot Winkler a5bc5806ff Add instances of guard in various appraisals 2015-04-01 00:02:21 -06:00
Elliot Winkler e2d1461a87 Upgrade pry to master version
The latest commit of pry removes a lot of annoying warnings.
Unfortunately a new release has not been issued yet, so just use the
master branch for now.
2015-02-28 19:30:29 -07:00
Elliot Winkler 72f60fae94 Add support for Postgres
When running tests, you can now switch between running them against a
SQLite or PostgreSQL database. This is accomplished by modifying the
unit and acceptance tests so that when they generate and load the test
Rails application, database.yml is replaced with content that will
configure the database appropriately.
2015-02-12 16:01:00 -07:00
Elliot Winkler 56ded0548d Add support for Ruby 2.2
Secondary author: Luciano Sousa <ls@lucianosousa.net>

Also, upgrade to rspec-rails 3.2.0 explicitly. (See
b7fe87ae91 for an explanation of why 3.2.0
is necessary here.)
2015-02-09 11:46:25 -07:00
Elliot Winkler 093268eac4 Clean up Gemfile
* Remove Aruba and Bourne since we don't use them anymore
* Remove Rails from main Gemfile as it's already a dependency in each of
  the appraisals
* Tighten dependency on Rake to 10.x
* Move dependencies shared among appraisals to Appraisals
2015-02-09 10:47:00 -07:00
Elliot Winkler b7fe87ae91 Test against RSpec 3 from now on
* Ruby 2.2 removed Minitest and Test::Unit from the standard library
  [[1]], [[2]]
* rspec-rails requires Test::Unit for Rails versions prior to 4.1 (which
  switched to Minitest)
* This doesn't work now, because we don't have Test::Unit present in the
  gem bundle
* RSpec 3.2.0 fixes this issue [[3]]

I don't really see this as a huge concern, since we were testing against
RSpec 2.99 for Rails < 4, and that has most of the changes that RSpec 3
has.

[1]: f8c6a5dc02
[2]: 96f552670d
[3]: 999ebb7c5c (diff-08d960c572ac094640dd183fa9641393R13)
2015-02-05 16:27:29 -07:00
Elliot Winkler d7f7f58637 Remove debugger, byebug, and web-console from 4.2
debugger and byebug cannot be present in Appraisals because they only
work on specific Ruby versions, and we test against a range of Ruby
versions. Hence, they can't be present in the Rails application that
gets generated in acceptance tests, either.

Also, we don't really need web-console to be there, it's just an extra
dependency.
2015-02-05 10:22:12 -07:00
Elliot Winkler 1e4555eaac Add Rails 4.2 to Travis 2015-01-23 09:43:08 -07:00
Elliot Winkler 03977d1bb0 Use pry-nav for more debugging awesomeness 2015-01-22 19:27:52 -07:00
Elliot Winkler a9ab35117b Ensure that we are req'd after rspec in tests
Currently before running unit tests we are getting auto-required before
rspec-rails is getting required. This is bad because we need to wait
until rspec-rails is loaded before injecting Shoulda::Matchers::* into
the current RSpec context, otherwise matchers that clash with
rspec-rails (such as `render_template` will get overridden).

This is happening when creating and booting the Rails application.
Bundler will auto-require any gems in the Gemfile. One of these gems is
ourselves (via the `gemspec` line). Since there aren't any dependencies
in the gemspec, there's no need for us to be in the Gemfile.

This means that we no longer have to explicit `include` Rails
ActionController template assertions in the tests for `render_template`
as they should get included automatically for us.
2014-12-25 00:44:54 -05:00
Elliot Winkler 5aed533412 Add Appraisal for Rails 4.2 2014-12-24 16:27:51 -05:00