Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Nov 4, 2014
  1. Elliot Winkler

    Reorganize unit tests, part I

    mcmire authored
    * Move spec/shoulda to spec/unit_tests/shoulda
    * Move spec/support/*.rb to spec/support/unit_tests/{helpers,matchers}
    * Move spec_helper.rb to unit_spec_helper.rb
Commits on Oct 17, 2014
  1. Elliot Winkler

    Remove warning from RSpec

    mcmire authored
    RSpec 3 will no longer infer the spec type from the file location, so
    2.99 prints this warning:
    
        --------------------------------------------------------------------------------
        rspec-rails 3 will no longer automatically infer an example group's spec type
        from the file location. You can explicitly opt-in to this feature using this
        snippet:
    
        RSpec.configure do |config|
          config.infer_spec_type_from_file_location!
        end
    
        If you wish to manually label spec types via metadata you can safely ignore
        this warning and continue upgrading to RSpec 3 without addressing it.
        --------------------------------------------------------------------------------
    
    So this commit merely adds the snippet to get rid of that warning.
Commits on Aug 14, 2014
  1. Pedro Nascimento Elliot Winkler

    Using RSpec 3 for development.

    lunks authored mcmire committed
Commits on Jul 19, 2014
  1. Elliot Winkler

    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 May 21, 2014
  1. Elliot Winkler

    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
    Appraisals.
    
    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 Jan 21, 2014
  1. Elliot Winkler

    Set I18n.enforce_available_locales correctly

    mcmire authored
    This setting is only available for I18n v0.6.9, so setting it for all
    versions of Rails or I18n versions may not work.
Commits on Jan 20, 2014
  1. Elliot Winkler

    Fix I18n.enforce_available_locales warning

    mcmire authored
    The warning message was:
    
      [deprecated] I18n.enforce_available_locales will default to true in
      the future. If you really want to skip validation of your locale you
      can set I18n.enforce_available_locales = false to avoid this message.
  2. Elliot Winkler

    Convert to RSpec expect syntax

    mcmire authored
Commits on Dec 3, 2013
  1. Elliot Winkler

    Refactor spec_helper

    mcmire authored
    The code that sets up the blank Rails application we use for testing is
    a little messy. Let's use an object to encapsulate this and then refer
    to this object every time we access Rails.application.
  2. Elliot Winkler

    Auto-retry `bundle install` when Travis runs tests

    mcmire authored
    `bundle install` doesn't always work -- sometimes it runs into errors
    making HTTP requests, for whatever reason. This will cause Travis to
    fail which is pretty annoying.
    
    * Travis supplies an executable called `travis_retry` which will
      automatically retry the command up to 3 times before really failing.
      Tell Travis to use this when it runs `bundle install` before it
      runs tests.
    * In spec_helper, we create a Rails app and use this within the
      test suite. This will also run `bundle install`. Unfortunately we
      can't use `travis_retry` for this as it's a function and is not
      available to us in Ruby-land, so use our own retry logic.
Commits on Apr 3, 2013
  1. Melissa Xie

    Remove 'have_sent_email' matcher

    mxie authored mxie committed
    * See issue #252
Commits on Jan 25, 2013
  1. George Brocklehurst

    Add a StrongParametersMatcher

    Jason Draper and George Brocklehurst authored georgebrock committed
Commits on Dec 27, 2012
  1. Gabe Berke-Williams
Commits on Mar 25, 2012
  1. Gabe Berke-Williams
Commits on Mar 24, 2012
  1. Gabe Berke-Williams

    Rearrange requires.

    gabebw authored
  2. Gabe Berke-Williams

    We don't use autorun.

    gabebw authored
  3. Gabe Berke-Williams

    Require bourne.

    gabebw authored
Commits on Mar 16, 2012
  1. Gabe Berke-Williams
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 May 25, 2011
  1. Prem Sichanugrist
Commits on Dec 15, 2010
  1. Joe Ferris
Commits on Dec 14, 2010
  1. Joe Ferris

    Removed the Matchers namespace

    jferris authored
  2. Joe Ferris
  3. Joe Ferris
Something went wrong with that request. Please try again.