Permalink
Commits on Oct 4, 2012
  1. Update dependencies in the gemspec

    Switch dependency away from 'rspec' because it loads core, which loads the DSL.
    This change allows rspec-rails to live side-by-side with minitest-rails.
    committed Oct 4, 2012
  2. Remove unnecessary require

    The rake task doesn't use core, and doesn't need the DSL loaded to work.
    Having core loaded stomps on minitest if in the same project.
    committed Oct 4, 2012
Commits on Oct 1, 2012
  1. Adds example of using render_template in a view spec

    * This is currently failing under Rails 4.0
    alindeman committed Oct 1, 2012
Commits on Sep 25, 2012
  1. Merge pull request #611 from alindeman/rails4

    Scaffolded controller specs are compatible with Rails 4
    alindeman committed Sep 25, 2012
Commits on Sep 24, 2012
  1. Scaffolded controller specs are compatible with Rails 4

    * Rails 4 introduces
      [strong_parameters](https://github.com/rails/strong_parameters).
    * If a model is scaffolded with attributes (e.g., `rails generate
      scaffold foo bar:string`), Rails will generate a controller that only
      accepts `bar`. This means that the controller spec must be aware of
      the specific parameters when sending PUT (update) requests.
    * Furthermore if a model is scaffolded with attributes, Rails generates
      a controller that *requires* the #presence of attributes. This means
      we cannot send in an empty Hash, as the Rails framework will return a
      400 Bad Request.
    alindeman committed Sep 24, 2012
Commits on Sep 19, 2012
  1. Merge pull request #608 from agirorn/use_include_in_view_spec_example

    Using contain in the View specs example is misleading.
    dchelimsky committed Sep 19, 2012
Commits on Sep 18, 2012
  1. Using contain in the View specs example is misleading because it does…

    … not work without including an extra gem.
    agirorn committed Sep 18, 2012
Commits on Sep 16, 2012
Commits on Sep 15, 2012
  1. Fixes the build on Rails master

    * `self.table_name=` has been preferred for a while (and supported since
      Rails 3.0.0); `set_table_name` is gone in Rails 4.
    alindeman committed Sep 15, 2012
Commits on Sep 13, 2012
Commits on Sep 12, 2012
  1. Changelog for #605

    [ci skip]
    alindeman committed Sep 12, 2012
  2. Support validation contexts when using #errors_on

    Previously, Model#errors_on calls Model#valid?, which will both clear
    the errors hash and run validations in the default context. This adds an
    :context option to #errors_on that gets passed to #valid?, allowing using
    errors_on with validation contexts.
    
    Exmaple usage:
    
        class Foo
          validates :name, length: {minimum: 20}, on: :publication
        end
    
        describe Foo
          it 'should have a name greater than 20 characters on publication' do
            subject.name = 'too short'
            subject.name.should have(1).error_on(:name, context: :publication)
          end
        end
    woahdae committed with alindeman Sep 11, 2012
  3. Gemfile-custom updates

    David Chelimsky committed Sep 12, 2012
Commits on Sep 11, 2012
Commits on Sep 8, 2012
Commits on Aug 18, 2012
  1. Merge pull request #599 from jonhyman/feature/ar-check

    Checking for existence of ActiveRecord in proxy.rb before getting constants from it.
    dchelimsky committed Aug 18, 2012
Commits on Aug 7, 2012
  1. Merge pull request #592 from rspec/readme_uses_expect_syntax

    README uses expect() syntax
    alindeman committed Aug 7, 2012
  2. Merge pull request #593 from rspec/features_use_expect_syntax

    Features use new expect() syntax
    alindeman committed Aug 7, 2012
  3. Merge pull request #582 from mrjordangoldstein/master

    Include require 'spec_helper' in README code examples, fixes #581
    alindeman committed Aug 7, 2012
  4. README uses expect() syntax

    alindeman committed Aug 7, 2012
  5. Changelog for #591

    [ci skip]
    alindeman committed Aug 7, 2012
  6. Merge pull request #591 from banyan/namespace-with-double-colon

    Accept namespace with double-colon
    alindeman committed Aug 7, 2012
Commits on Aug 6, 2012