Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Apr 3, 2015
  1. @derekprior


    derekprior authored
Commits on Mar 3, 2015
  1. @derekprior


    derekprior authored
  2. @derekprior

    Update to latest shoulda-matchers

    derekprior authored
    Change references to deprecated `set_the_flash` matcher.
Commits on Mar 2, 2015
  1. @mxie

    Update rspec-rails version

    mxie authored
    As a result:
    * In the ActionMailer initializer for the test app, we have to refer to the
    ActionMailer object itself to configure it instead of the app config. This was
    recommended in rspec/rspec-rails#1313.
    * We had to change the setup for rack_session_spec because RSpec now checks for
    mutation of arguments passed into spies.
Commits on Jan 23, 2015
  1. @derekprior


    derekprior authored
Commits on Jan 9, 2015
  1. @derekprior

    Replace Cucumber with RSpec acceptance specs

    derekprior authored
    The replacement spec does much the same as the features were doing
    before, but in a (hopefully) more maintainable manner. We generate a
    fresh rails app, install clearance, and run clearance's generated specs.
    I kept the acceptance spec in its own suite because the output of it is
    a bit odd and I wanted it separate from our usual tests. It will output
    the results of the generated specs followed by the result of the single
    acceptance spec.
Commits on Jan 8, 2015
  1. @derekprior


    derekprior authored
  2. @derekprior

    Test & Support Ruby 2.2 across Rails versions

    derekprior authored
    To get the test suite to run in under 2.2, I:
    * Upgraded Cucumber to a version that supports Ruby 2.2
    * Added 2.2.0 to our Travis Matrix (Sorry, Travis)
    * Excluded Rails 3.2 under Ruby 2.2 from appraisals as it is not
      supported by rails (yet). See: rails/rails#18306
    Once that was done, it was  discovered that Rails 4.0.x requires the
    `test-unit` gem under Ruby 2.2. Adding that gem allows the test suite to
    run there.
    With that in place, I found that the `deny_access` matcher was not
    negating as expected. This is because the test-unit gem raises a
    different error when an assertion failed. I have to catch this error in
    addition to the Minitest::Assertion error we were already catching.
Commits on Jan 7, 2015
  1. @derekprior


    derekprior authored
Commits on Dec 31, 2014
  1. @derekprior

    Add generator specs with ammeter

    derekprior authored
    These replace several cucumber features and allow for more of a unit
    test of generators.
    In the process of testing the generators with ammeter, a simplification
    was made to the install generator: `inject_into_class` already handles
    not duplicating this injection - we don't need to guard against it
Commits on Dec 22, 2014
  1. @jessieay

    Upgrade to rspec-rails 3.1

    Derek and Jessie authored jessieay committed
    * Fix deprecation warnings in the cookie matcher
    * Fix loading of the MiniTest runner (caused by requiring
      `rails/test_help`, which we didn't need anyway.
    * Remove wrapper around MiniTest::Assertion
    * Clean up requires in `spec_helper` and `env`.
    * Remove .rspec file as the settings in there are default
    * Add appraisals to version control per
Commits on Dec 20, 2014
  1. @derekprior


    derekprior authored
  2. @derekprior

    Support Rails 4.2

    derekprior authored
    Most of the changes necessary here were test-suite-only issues. The lone
    production-impactful change was adding support for
    `ActionMailer#deliver_later` in the `PasswordsController`. This will
    automatically use the queue configured with Active Job in order to
    background the sending of email. With no queue configured, it will be
    delivered synchronously. The old `#deliver` method still works, but
    generates deprecation warnings.
    The rest of the changes were related to the test suite:
    * Add a Rails 4.2 appraisal
    * Update cucumber steps to remove unnecessary gems from generated apps.
    * Simplify appraisal dependencies thanks to the above.
    * Fixed `forgeries_controller_spec`. This is still a brittle way to test
      this functionality but at least it works across Rails versions.
    * Removed deprecation related to test suite ordering in the test app
      that is loaded.
    There remains a single (repeated) deprecation when running specs on 4.2
    which comes from RSpec and will be addressed by upgrading to
    `rspec-rails` 3.1 (see [`rspec-rails` issue]. That work will be in a
    separate pull-request.
    [`rspec-rails` issue]: rspec/rspec-rails#1187
  3. @derekprior

    Convert to rspec-mocks

    derekprior authored
    Another step in modernizing the clearance test suite. We've been using
    rspec-mocks on our projects for over a year now.
Commits on Dec 19, 2014
  1. @derekprior


    derekprior authored
Commits on Oct 17, 2014
  1. @derekprior


    derekprior authored
Commits on Oct 6, 2014
  1. @scriptmonkey @derekprior

    Convert to expect syntax

    scriptmonkey authored derekprior committed
    * Upgrade to rspec 2.99
    * Change to expect syntax
    * Change one-liners to `is_expected` syntax
    * Fix hound warnings on long lines
    * Fix ruby warnings re: `match` rspec matcher (add parens around regex)
Commits on Oct 3, 2014
  1. @derekprior


    derekprior authored
Commits on Sep 13, 2014
  1. @derekprior


    derekprior authored
Commits on Sep 5, 2014
  1. @derekprior


    derekprior authored
Commits on Jul 18, 2014
  1. @derekprior


    derekprior authored
Commits on Apr 15, 2014
  1. @derekprior

    Upgrade to Appraisal 1.0

    derekprior authored
    The default `rake` task is now the non-appraisal version, which runs
    both the specs and features.  To run appraisals, use the appraisal CLI:
    `appraisal rake`.
    Updated travis config to use appraisal CLI. Updated rails 4.x dependencies
    to latest versions.
Commits on Mar 14, 2014
  1. @derekprior

    Bump to 1.3.0

    derekprior authored
Commits on Mar 6, 2014
  1. @derekprior

    Prepare version 1.2.1

    derekprior authored
Commits on Mar 3, 2014
  1. @derekprior

    Bump to 1.2.0

    derekprior authored
Commits on Feb 25, 2014
  1. @calebthompson @derekprior
Commits on Feb 22, 2014
  1. @derekprior

    Fix build failures on Rails 4.1.rc1

    derekprior authored
    Rails 4.1 now includes jbuilder 2.0+ in its default gemfile. Move the
    jbuilder 1.2 dependency from the clearance `gemfile` into the appraisals
    for Rails < 4.1 and add jbuilder 2.0 to the Rails 4.1 appraisal. The
    sdoc dependency was also moved into the appraisal definitions because
    it is a dependency only because it is included in the rails default
    gemfile. This leaves the gemfile for development dependencies only.
    Renamed the `create_migration` method in the Clearance install generator
    because it was [conflicting with a method][1] that was added into the
    class hierarchy in Rails 4.1.
Commits on Feb 5, 2014
  1. @derekprior

    Add Ruby 2.1 and Rails 4.1 to test matrix

    derekprior authored
    * Add Ruby 2.1 to travis configuration
    * Update Rails 3.2 and 4.0 appraisals to latest versions
      * Add I18n.enforce_available_locales setting to test app to avoid
        deprecation warning.
    * Add Rails 4.1.0.beta1 to appraisals
      * Test unit integration feature updated to account for differing test
        output under rails 4.1
    * Update gems
Commits on Nov 21, 2013
  1. @croaky

    Bump to 1.1.0

    croaky authored
  2. @localhots @croaky

    Allow cookie domain and path configuration

    localhots authored croaky committed
Commits on Aug 23, 2013
  1. @derekprior

    Update shoulda matchers to latest RC

    derekprior authored
    The rails 4 branch of shoulda matchers was merged in and a release candidate
    was cut. Let's use that.
Commits on Aug 16, 2013
  1. @gylaz

    Upgrade shoulda-matchers (rails 4 branch)

    gylaz authored
    Last commit revision is no longer available
Commits on Aug 10, 2013
  1. @gylaz

    Bump version to 1.0.1

    gylaz authored
Commits on Aug 1, 2013
  1. @croaky

    Bump to 1.0.0

    croaky authored
  2. @croaky

    Fix Travis build

    croaky authored
    Force `bundle install` in install step
    Travis will now runs `bundle install --deployment` if it detects that
    the project has `Gemfile.lock`. However, there's a problem in Bundler
    deployment install that cause it not installing `bundler` gem into
    `vendor/bundle` directory, which causes `require 'bundler'` to fail.
Something went wrong with that request. Please try again.