Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on Feb 12, 2015
  1. @mcmire

    Add support for Postgres

    mcmire authored
    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.
Commits on Feb 9, 2015
  1. @mcmire

    Add support for Ruby 2.2

    mcmire authored
    Secondary author: Luciano Sousa <>
    Also, upgrade to rspec-rails 3.2.0 explicitly. (See
    b7fe87a for an explanation of why 3.2.0
    is necessary here.)
  2. @mcmire

    Remove Rails 3.x, Ruby 1.9.2, Ruby 1.9.3

    mcmire authored
    Ruby 1.9.3 will be end-of-lifed on February 23, 2015. We might as well
    remove support for it now.
  3. @mcmire

    Clean up Gemfile

    mcmire authored
    * 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
Commits on Feb 5, 2015
  1. @mcmire

    Test against RSpec 3 from now on

    mcmire authored
    * 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
    [1]: ruby/ruby@f8c6a5d
    [2]: ruby/ruby@96f5526
    [3]: rspec/rspec-rails@999ebb7#diff-08d960c572ac094640dd183fa9641393R13
  2. @mcmire

    Remove debugger, byebug, and web-console from 4.2

    mcmire authored
    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
Commits on Jan 23, 2015
  1. @mcmire

    Add Rails 4.2 to Travis

    mcmire authored
Commits on Dec 24, 2014
  1. @mcmire

    Add Appraisal for Rails 4.2

    mcmire authored
Commits on Oct 8, 2014
  1. @mcmire

    Add minitest to Rails 3.x appraisals

    mcmire authored
    The minitest dependency is necessary in order to write Cucumber tests
    that depend on Minitest.
  2. @mcmire
Commits on Aug 14, 2014
  1. @lunks @mcmire

    Using RSpec 3 for development.

    lunks authored mcmire committed
Commits on Jun 27, 2014
  1. @mcmire

    Use same assertion class as Rails, if loaded

    mcmire authored
    Given this scenario:
    * Using Rails 4.1
    * Gemfile has `gem 'shoulda-matchers', require: false`
    * spec_helper has `require 'shoulda/matchers'` following
      `require 'rspec/rails'`
    * Using Spring to run tests
    matchers that delegate to assertions in Rails (e.g. `render_template`
    and `route`) will fail in the wrong way if used. They fail because in
    order to use these assertions, we expect that the assertions will
    raise a specific exception, an exception that corresponds to whichever
    test framework that Rails is using. For Rails versions that used
    Test::Unit, this is Test::Unit::AssertionFailedError. For current Rails
    versions, which now use Minitest, this exception is Minitest::Assertion.
    The problem is that instead of asking Rails which exception class it's
    using, we are trying to detect this exception class ourselves (for
    cases in which Rails is not being used). This leads to the wrong class
    being detected: when using a Rails version that uses Minitest, we choose
    Test::Unit::AssertionFailedError as the class. This happens using the
    exact scenario above because even though shoulda-matchers is loaded
    after rspec-rails, rspec-rails itself defines
    Also add Cucumber tests that confirms this exact scenario works.
Commits on May 21, 2014
  1. @mcmire

    Add missing test dependences to Appraisals

    mcmire authored
    Since as of commit 2748b75, we no
    longer install dependencies inside of the Rails app that is generated
    and used to run all of the tests, we have to require all of the
    dependencies that the app would install inside of the appropriate
    This was mostly straightforward except for some workarounds with the
    turn gem:
    * Rails 3.1 requires two versions of turn depending on which Ruby
      version you're using. On 1.9.2, it uses turn 0.9.2; after 1.9.2, it
      uses ~> 0.9.3. To accommodate this we have to have two versions of the
      Rails 3.1 appraisal which declare the different turn versions.
    * Rails 3.1 also loads the turn gem even if, in the Gemfile for the app,
      turn is declared with `require: false`. This causes a problem while
      running our tests because turn actually requires minitest/autorun,
      which adds a hook so when Ruby exits, Minitest tests are run. Because
      we're already using RSpec, Minitest will try to re-run the `rspec`
      command we ran within a Minitest environment. This will fail since we
      are using RSpec-specific command line options to run the tests.
      Unfortunately there's no way to shut off minitest/autorun after it's
      been required, so we have to monkey-patch Minitest's #run method so
    it's a no-op.
Commits on Apr 8, 2014
  1. @maurogeorge

    Add support to rails 4.1.0

    maurogeorge authored
Commits on Dec 19, 2013
  1. @mcmire

    Add Appraisal for Rails 4.0.1

    mcmire authored
Commits on Sep 11, 2013
  1. @carpodaster @mcmire

    Fix regression with context-dependent validations in ActiveResource

    carpodaster authored mcmire committed
    As reported in #348, model#valid? is called with one argument while
    ActiveResource::Validations only defines #valid? without an optional
    The interface of ActiveResouce::Validations#valid? is the same for
    A'resource in Rails 3.2 and the one extracted into a gem.
    Rails 3.2 version:
    Gem version:
Commits on Sep 6, 2013
  1. @MDaubs @mcmire

    Add have_secure_password matcher

    MDaubs authored mcmire committed
Commits on Aug 16, 2013
  1. @derekprior @mcmire

    Add Rails 4 Appraisal

    derekprior authored mcmire committed
    Rails 4 includes strong parameters and removed attr_accessible
    (protected attributes). I removed the strong_parameters development
    dependency and added it to all non-4.0 appraisals. I also added the
    'protected_attributes' gem to the 4.0 appraisal because the test suite
    examples make heavy use of attr_accessible.
Commits on Apr 19, 2013
  1. @derekprior

    Ruby 2.0 Support

    derekprior authored
    * Add Ruby 2.0 support to the Appraisals
    * Update travis to test 2.0.0 with the 3.2 gemfile. Clean up the travis
      matrix to favor the include syntax over exclude.
    * Edit gemfile.locks to point to relative paths.
Commits on Dec 3, 2012
  1. @sferik

    Update 3.2.gemfile.lock

    sferik authored
  2. @sferik

    Update 3.1.gemfile.lock

    sferik authored
  3. @sferik

    Update 3.0.gemfile.lock

    sferik authored
Commits on Oct 1, 2012
  1. @gabebw
Commits on Apr 20, 2012
  1. @gabebw

    Test against Rails 3.2.

    gabebw authored
Commits on Apr 13, 2012
  1. @gabebw
Commits on Nov 2, 2011
  1. Remove uglifier and coffee-rails from the 3.1 gemfile, and modify spe…

    Blake Thomson authored
    …c_helper.rb to respect a BUNDLE_GEMFILE set on the command line.
Commits on Sep 18, 2011
  1. @sikachu
Commits on Sep 12, 2011
  1. @sikachu

    Update testing dependencies

    sikachu authored
Commits on May 30, 2011
  1. @sikachu

    Go back and use `bundle install --local`, but specify additional depe…

    sikachu authored
    …ndencies in `Appraisal` file.
Commits on May 25, 2011
  1. @sikachu

    Add Appraisals to the project to handle testing against multiple Rail…

    sikachu authored
    …s version
    Note that we also bump RSpec to 2.6.1.beta1 because the incompatibility with Rails 3.1.0.rc1
Something went wrong with that request. Please try again.