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

    Publish docs at /docs and not /

    mcmire authored
    The new site will be published at / instead.
  3. @mcmire
Commits on Nov 5, 2014
  1. @mcmire

    Remove Cucumber tests

    mcmire authored
  2. @mcmire
  3. @mcmire

    Reorganize unit tests, part II

    mcmire authored
    * Change 'spec' Rake task to 'spec:unit'
    * Require unit_spec_helper.rb in unit tests, not spec_helper.rb
    * Re-namespace files in spec/support/unit under UnitTests
    * Files in spec/support/unit/helpers no longer automatically add
      themselves to RSpec - this happens in unit_spec_helper.rb
    * Extract RecordWithDifferentErrorAttributeBuilder and
      RecordValidatingConfirmationBuilder to separate files
Commits on Sep 3, 2014
  1. @mcmire

    Fix rake task to generate docs

    mcmire authored
    `--ignore-removal` is no longer an option to `git add`.
Commits on Jul 19, 2014
  1. @mcmire

    Remove all Ruby-emitted warnings

    mcmire authored
    Run RSpec tests with warnings enabled so we stay on top of this better
    in the future.
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 Jun 20, 2014
  1. @mcmire
Commits on Feb 22, 2014
  1. @mcmire
  2. @mcmire

    Install appraisals before running the test suite

    mcmire authored
    Currently, `rake` does run the `appraise` task before running tests. If
    you run `rake appraise` on its own, it runs `rake appraise:install`
    beforehand. However, the way that `rake` runs `appraise` is by
    executing, not invoking, it. Hence, `appraisal:install` will actually
    not be run (as #execute does not run dependencies for the task being
    This fix is mostly useful when running tests locally -- on Travis this
    isn't a problem b/c we are running `rake spec cucumber` instead of just
Commits on Mar 4, 2013
  1. @mjankowski
Commits on Apr 11, 2012
  1. @gabebw

    Clean up Rakefile.

    gabebw authored
Commits on Nov 18, 2011
  1. @gabebw

    bundler/setup is important.

    gabebw authored
Commits on Nov 12, 2011
  1. @gabebw

    bundler/gem_tasks is easier.

    gabebw authored
  2. @gabebw

    Use Bundler gem conventions.

    gabebw authored
    Use stable version of shoulda-context. Remove rdoc-related code.
Commits on Nov 2, 2011
  1. @gabebw
Commits on Oct 15, 2011
  1. @croaky
Commits on May 30, 2011
  1. @sikachu
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
Commits on Dec 15, 2010
  1. @jferris
  2. @jferris
Commits on Dec 14, 2010
  1. @jferris
  2. @jferris
Commits on Dec 13, 2010
  1. @jferris

    Don't test Rails 2

    jferris authored
Commits on Sep 15, 2010
  1. @zenspider @rmm5t

    - Enable rakefile to load w/o cucumber

    zenspider authored rmm5t committed
    Signed-off-by: Ryan McGeary <>
Commits on Jun 23, 2010
  1. @jferris

    Fixed rspec2/rails3 integration; added integration tests for macros/m…

    jferris authored
    …atchers/rspec in rails 2 and 3 using cucumber
Commits on Jun 22, 2010
  1. @joshuaclayton
  2. @joshuaclayton
Commits on Jun 11, 2010
  1. @jferris

    Use a dynamic gemspec instead of generating one from the Rakefile; up…

    jferris authored
    …dated authors and other gem info; bumped to version 2.11
Commits on Jun 8, 2010
  1. @jferris
Commits on Feb 28, 2009
  1. @rmm5t
Commits on Jan 27, 2009
  1. @jferris

    Fixed failing matcher tests

    jferris authored
Something went wrong with that request. Please try again.