Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: rspec/rspec-rails
head fork: rspec/rspec-rails
Checking mergeability… Don't worry, you can still create the pull request.
This comparison is big! We're only showing the most recent 250 commits
Commits on Jan 19, 2012
@dchelimsky dchelimsky use ammeter from git (has fix for deprecation warnings on InstanceMet…
@dchelimsky dchelimsky mock_model(XXX).as_null_object.unknown_method returns self
- Fixes #488.
@dchelimsky dchelimsky Merge pull request #473 from jwulff/add_description_to_route_to_matcher
Add description method to route_to matcher
@dchelimsky dchelimsky Changelog for #473.
Also aligned the example with others in the spec.
@dchelimsky dchelimsky dev: add -w when running rake spec 2ffa9fb
@dchelimsky dchelimsky Funny thing, but turning on warnings produces a bunch of warnings. Mo…
…stly gone now.
Commits on Jan 21, 2012
@reidreid46 reidreid46 Fix method name type 'click_buton' 03a2f6f
@dchelimsky dchelimsky Merge pull request #490 from reidreid46/master
Fix typo in readme: 'click_buton' to 'click_button'
Commits on Jan 24, 2012
@dchelimsky dchelimsky ci: run against rails 3.2.0 acfe944
@thejamespinto thejamespinto this commented line should not be inside a loop 4ca7614
@dchelimsky dchelimsky Use .inspect on hashes in descriptions for Ruby 1.8.7.
- #473.
@dchelimsky dchelimsky Merge pull request #493 from yakko/no_more_repeating_webrat
this commented line should not be inside a loop
@dchelimsky dchelimsky ci: point Gemfile at git for journey gem for rails 3-2-stable 53644fc
Commits on Jan 27, 2012
@dchelimsky dchelimsky ci: rails 3.2.1 50a27f2
Commits on Feb 01, 2012
@dchelimsky dchelimsky remove rendering engine and mime type from calls to describe and rend…
…er in docs and cukes
Commits on Feb 12, 2012
@dchelimsky dchelimsky Generated view specs use different IDs for each attribute.
- Fixes #504.
Commits on Feb 13, 2012
@justinko justinko Use #next 1e2ac19
Commits on Feb 14, 2012
@dchelimsky dchelimsky ci: experiment with new travis feature to allow failures when running…
… against dev branches of rails
Commits on Feb 21, 2012
@mlineen mlineen Update 6207edc
@justinko justinko Merge pull request #506 from mlineen/patch-1
Commits on Feb 27, 2012
@dchelimsky dchelimsky ci: add rails-3.2.2.rc1 c873d34
@dchelimsky dchelimsky Make specs about messages more tolerant of inconsistent ordering char…
…acteristics of different rubies.
@dchelimsky dchelimsky ci: extend aruba timeout to 30 secs acef5dc
Commits on Mar 02, 2012
@dchelimsky dchelimsky ci: run against released rails-3.2.2 4f747d7
Commits on Mar 07, 2012
@dchelimsky dchelimsky ci: bump to latest rails patch releases d05b9a8
@Antiarchitect Antiarchitect Make rspec to copy schema structure if schema format is :sql. 6d726b5
Commits on Mar 08, 2012
@justinko justinko Merge pull request #517 from Antiarchitect/patch-1
Make rspec to copy schema structure if schema format is :sql.
@justinko justinko changelog ddccef1
@justinko justinko Use name instead of handle 46a1a60
Commits on Mar 11, 2012
@dchelimsky dchelimsky dev: upgrade Cucumber, Aruba and ZenTest 4bc0843
Commits on Mar 12, 2012
@dchelimsky dchelimsky bump to 2.9.0.rc1 a52573e
@dchelimsky dchelimsky align gemspec with other rspec libs 5f9b860
@dchelimsky dchelimsky bump to 2.9.0.rc2 4850973
Commits on Mar 16, 2012
@dchelimsky dchelimsky require 'rspec/expectations' to ensure that 'should' is defined 5e1b8a2
Commits on Mar 17, 2012
@dchelimsky dchelimsky bump to 2.9.0 9f976cb
@dchelimsky dchelimsky Merge branch '2-9-maintenance'
* 2-9-maintenance:
  bump to 2.9.0
@dchelimsky dchelimsky dev: add a script to download ruby-debug-base19-0.11.26.gem and linec…
…ache19-0.5.13.gem to a local cache

[ci skip]
@justinko justinko Use Cucumber's 'step' method to remove deprecation warnings. ed5787d
@justinko justinko Use --skip-test-unit e833a27
@dchelimsky dchelimsky changlog formatting tweaks 6b7adaf
Commits on Mar 30, 2012
@martinsvalin martinsvalin Let local render_views override global setting
If render_views is enabled globally in the spec_helper, it clobbers attempts to disable it locally for specific examples due to the false || true logic.

Instead, only use the global setting if no local render_views was provided.
Commits on Mar 31, 2012
@justinko justinko Merge pull request #522 from martinsvalin/render_views
Let local render_views override global setting
@justinko justinko Use Hash#fetch 72b6d52
@justinko justinko Changelog for #522 002f1da
Commits on Apr 01, 2012
@nertzy nertzy Add Rails 3.2.3 to Travis CI matrix 74deef3
@justinko justinko Merge pull request #524 from nertzy/rails_3.2.3_in_travis
Add Rails 3.2.3 to Travis CI matrix
@justinko justinko Dev: fix build by allowing mass assignment for an attribute b11800f
Commits on Apr 03, 2012
@dchelimsky dchelimsky remove obsolete guard against building gems in ruby 1.9.3 dbcdcf7
Commits on Apr 08, 2012
@dchelimsky dchelimsky use prepend_before for rails' test adapter
- Fixes #391.
- Needs to be released with or after addition of prepend_before to
Commits on Apr 13, 2012
@justinko justinko typo [ci skip] 3562f8f
@jdelStrother jdelStrother Fix rendering deprecations in view specs
render(:template=>'new.erb') is now deprecated and should be render(:template=>'new', :handlers=>['erb']).  This patch takes the default template name supplied in the spec and breaks it up into its separate components before calling render().
Commits on Apr 18, 2012
@justinko justinko Fix render_views for anonymous controllers on 1.8.7. Closes #525 10bba44
Commits on Apr 20, 2012
@dchelimsky dchelimsky route_to matcher captures ActionController::RoutingError as well as
Assertion failures.

- Fixes #530.
Commits on Apr 21, 2012
@dchelimsky dchelimsky dev: update Gemfile f03065c
@dchelimsky dchelimsky Eliminate use of deprecated process_view_paths.
- Fixes #519.
@dchelimsky dchelimsky doc more changes in Changelog [ci skip] 3c09c4b
Commits on Apr 22, 2012
@dchelimsky dchelimsky align config files across rspec projects d691d05
@dchelimsky dchelimsky dev: align Gemfiles across rspec projects e1fd5b6
@dchelimsky dchelimsky Merge pull request #463 from ndbroadbent/fix_path_parameters
Change request.path_parameters keys to symbols to match real Rails environment
@dchelimsky dchelimsky Changelog for #463 [ci skip] 89da19c
@dchelimsky dchelimsky Merge pull request #529 from jdelStrother/render_args
Fix rendering deprecations in view specs
@dchelimsky dchelimsky Changelog for #529 [ci skip] 040f6a9
Commits on Apr 23, 2012
@dchelimsky dchelimsky ci: without --without development 7ce7d07
@dchelimsky dchelimsky fix cuke broken by #461 3ad5d8a
Commits on Apr 27, 2012
@dchelimsky dchelimsky minor Changelog tweak [ci skip] 4623ad1
Commits on Apr 28, 2012
@moonmaster9000 moonmaster9000 Fix typo in README (Articles -> Article) 70dfecd
@myronmarston myronmarston Merge pull request #532 from moonmaster9000/patch-1
Fix typo in README (Articles -> Article)
Commits on May 01, 2012
@dchelimsky dchelimsky update yard to 0.8 aea719d
Commits on May 03, 2012
@hardbap hardbap Update with the latest version of rspec_rails. 2dc13e8
@hardbap hardbap Change it to 2.0 based on comments by @dchelimsky. 2e2bb32
@dchelimsky dchelimsky Merge pull request #533 from hardbap/patch-1
Update with the latest version of rspec_rails.
Commits on May 04, 2012
@dchelimsky dchelimsky update changelog for 2.10 release c48da4c
@dchelimsky dchelimsky bump to 2.10.0 93e4eec
Commits on May 05, 2012
@dchelimsky dchelimsky Only prepend_before the Rails setup methods
- Fixes #534
- Unfortunately depends on names of methods that are internal to Rails
  and subject to change. Fingers crossed.
@dchelimsky dchelimsky ci: add active_record_deprecated_finders to Gemfile so we can run aga…
…inst Rails' master
@dchelimsky dchelimsky dev: bump ammeter to 0.2.5 b6e3ae3
@dchelimsky dchelimsky bump to 2.10.1 63a9efd
Commits on May 09, 2012
@dchelimsky dchelimsky dev: refactor a spec 0677052
Commits on May 10, 2012
@danrasband danrasband Added configuration to allow for custom application engine. 83e24bc
Commits on May 16, 2012
@danrasband danrasband Make code version specific for rails 3.1 and up
This commit adds Rails version checking to the RSpec application
configuration to handle Rails 3.0.x. The Rails::Engine class, while
available in Rails 3.0, does not have the capability to draw routes as
it does in 3.1 and above.
Commits on May 22, 2012
@dchelimsky dchelimsky refactor matchers to conform to internal changes in rspec-expectations 1cd9a3c
@pixeltrix pixeltrix Update obsolete link to fixture documentation 6781841
@dchelimsky dchelimsky Merge pull request #547 from pixeltrix/patch-1
Update obsolete link to fixture documentation [ci skip]
Commits on May 25, 2012
@brynary brynary Add Code Climate badge e458003
@dchelimsky dchelimsky Merge pull request #548 from brynary/codeclimate-badge
Add Code Climate badge
David Chelimsky gotta change the cukes too!
- Fixes build broken by #547
Commits on May 31, 2012
@jackdempsey jackdempsey built-in scaffold generator already runs the hook for helper fd965a2
Commits on Jun 01, 2012
@dchelimsky dchelimsky Merge pull request #551 from jackdempsey/remove_hook_for_helper
built-in scaffold generator already runs the hook for helper
@dchelimsky dchelimsky Changlog for #551 [ci skip] cfca79e
@dchelimsky dchelimsky add travis banner to README [ci skip] ec87acc
@dchelimsky dchelimsky Take two on the travis banner (grabbed the wrong one the first time)
[ci skip]
@bricker bricker Update Factory Girl examples to replace deprecated syntax 13bf2a4
@justinko justinko Merge pull request #552 from bricker88/patch-1
Update Factory Girl examples to replace deprecated syntax
Commits on Jun 02, 2012
@justinko justinko Update doc for stub_model 68787f7
@justinko justinko Use one-liner for configuration. e09f6e5
@justinko justinko Dev: Fix helper_spec.feature from failing after the first run
Because we manually include `ApplicationHelper` into the `_view`
object, we can't have conflicting method names between the helpers.

This is not really something to worry about with user projects: I
believe most projects use `helper :all` and/or do not utilize
inheritance (include helper in a helper, with conflicting names in

Fixes #554
@justinko justinko Dev: Forgot to "revert" including ApplicationHelper into the singleto…
…n class - `extend` is just fine.
@sferik sferik Use American-English spelling of color as default
This brings the generated `.rspec` file in line with the version used
in the project:
@sferik sferik Default to run specs in random order to catch order dependencies
* Some features still need to run in default order
@alindeman alindeman Merge branch 'sferik-update_template' 12fd9da
@alindeman alindeman Changelog for #501
* Closes #501
@dchelimsky dchelimsky renames `render_template` to `have_rendered`.
Also aliases to `render_template` for backward compatibility
Commits on Jun 03, 2012
@alindeman alindeman Explicitly specify the scope of Rails
* If another gem defines `Rspec::Rails` before us, `Rails` might qualify
  to `Rspec::Rails` (at least in 1.9)
* Fixes #555
Commits on Jun 04, 2012
@danrasband danrasband Tweak alternate app integration
This commit removes most if-statements from the example groups,
consolidating to a global method called `at_least_rails_3_1`. It
also adds filters to the rspec tests and changes engine_support.rb
to application.rb.
Commits on Jun 05, 2012
@rimidl rimidl Fix typo in b86190c
@dchelimsky dchelimsky Merge pull request #558 from rimidl/master
Fix typo in
Commits on Jun 06, 2012
@dchelimsky dchelimsky changelog tweaks [ci skip] f869484
Commits on Jun 09, 2012
@jredville jredville add features to show how namespaced routes can be matched e795ec0
@justinko justinko Merge pull request #559 from jredville/master
add features to show how namespaced routes can be matched
@justinko justinko Revert change to features/routing_specs/ - the documentation…
… for #route_to is sufficient
Commits on Jun 21, 2012
@bnmrrs bnmrrs Removed the extra spaces between methods. They have been mocking me f…
…or months.
@dchelimsky dchelimsky Merge pull request #566 from bnmrrs/patch-1
OPTIMIZATIONS! Removed extra spaces between methods
Commits on Jun 22, 2012
@danrasband danrasband Raise error for Rails 3.0
Adds an override of Rails.configuration.application=(*) setter to
raise an error when Rails.configuration.application is set in Rails
3.0. Also moves at_least_rails_3_1? method to the RSpec::Rails module
as a public module method.
Commits on Jun 23, 2012
@justinko justinko Merge pull request #539 from danrasband/custom-application-configuration
Added configuration to allow for custom application engine.
@justinko justinko Move "at least rails 3.1" method to rspec/rails file. f067d8f
@justinko justinko This should be a writer method spec. 454364b
@justinko justinko Move the "drawing of the routes" for the EngineExample to engine_exam…
@justinko justinko Don't need a file for this. 1f58ed9
Commits on Jun 24, 2012
@justinko justinko Don't need this example - it spec's an accessor. b4b2608
@justinko justinko changelog 489bebc
@justinko justinko No need for explicit return statement. 2fc6473
@justinko justinko Nothing "custom" about this. 1a9d160
@justinko justinko Move the "application swapping" to an `around` filter in the spec_hel…
@justinko justinko After thinking about it, there is nothing "engine specific" about any…
… of this new code. Therefore, no need to have engine specific specs.
@justinko justinko Better changelog message. ebd891f
Commits on Jun 26, 2012
@dchelimsky dchelimsky convert matchers to subclass BaseMatcher class 91870ed
Commits on Jul 07, 2012
@dchelimsky dchelimsky revert all changes for #539
- not ready for release so backing out
- changes are stored in engine-support branch
@dchelimsky dchelimsky bump to 2.11.0 fb2f6f1
@dchelimsky dchelimsky improve automation for publishing to 3a4d16b
Commits on Jul 08, 2012
@urkle urkle add feature example of alternative usage of errors_on d798e70
Commits on Jul 21, 2012
@alindeman alindeman Merge pull request #570 from urkle/errors_on
add feature example of alternative usage of errors_on
Commits on Jul 26, 2012
@dchelimsky dchelimsky dev: fix inclusion of custom Gemfile 10de3e3
@dchelimsky dchelimsky ci: bump to latest rails versions 24b0f3c
Commits on Jul 27, 2012
@dchelimsky dchelimsky ci: update git-sourced dependencies for master and 2-3-stable 274ae67
Commits on Jul 30, 2012
@mrjordangoldstein mrjordangoldstein Include require 'spec_helper' in README code examples, fixes #581 72ceb3c
Commits on Aug 01, 2012
@henrik henrik Clarify when webrat/capybara autoloading applies.
Since I got it wrong: #360
@dchelimsky dchelimsky Merge pull request #585 from henrik/patch-1
Clarify when webrat/capybara autoloading applies.
Commits on Aug 03, 2012
@dchelimsky dchelimsky Add should and should_not to CollectionProxy
- Fixes #588.
- Fixes #445.
Commits on Aug 05, 2012
@dchelimsky dchelimsky dev: update dev dependencies 4187a26
@dchelimsky dchelimsky Revert "Add should and should_not to CollectionProxy"
This reverts commit abfd0fc.
Commits on Aug 06, 2012
@myronmarston myronmarston A better fix for CollectionProxy#should.
- Delay the fix so that users can configure a different expectation framework.
- Handle the right class for rails 3.0 (AssociationProxy) and 3.1+ (CollectionProxy).

- Fixes #588.
- Fixes #445.
@myronmarston myronmarston A couple fixes from @dchelimsky's comments. 48a0d0c
@banyan banyan Accept namespace with double-colon 909af09
Commits on Aug 07, 2012
@alindeman alindeman Merge pull request #591 from banyan/namespace-with-double-colon
Accept namespace with double-colon
@alindeman alindeman Changelog for #591
[ci skip]
@alindeman alindeman README uses expect() syntax 9324260
@alindeman alindeman Merge pull request #582 from mrjordangoldstein/master
Include require 'spec_helper' in README code examples, fixes #581
@alindeman alindeman Features use new expect() syntax a65ff6e
@alindeman alindeman Merge pull request #593 from rspec/features_use_expect_syntax
Features use new expect() syntax
@dchelimsky dchelimsky ci: run against rails-3.2.8.rc2 8d3ab42
@alindeman alindeman Merge pull request #592 from rspec/readme_uses_expect_syntax
README uses expect() syntax
Commits on Aug 18, 2012
@jonhyman jonhyman Checking for existence of ActiveRecord in proxy.rb before getting con…
…stants from it.
@dchelimsky dchelimsky only add should[_not] to ActiveRecord classes if AR defined 07d6a1a
@dchelimsky dchelimsky Revert "only add should[_not] to ActiveRecord classes if AR defined"
This reverts commit 07d6a1a.
@dchelimsky dchelimsky Merge pull request #599 from jonhyman/feature/ar-check
Checking for existence of ActiveRecord in proxy.rb before getting constants from it.
Commits on Sep 08, 2012
@dchelimsky dchelimsky replace 'it "should' with 'it "does' (using should_clean gem) 69a63ce
Commits on Sep 11, 2012
@patmaddox patmaddox Update README w/ links to Factory Girl & Capybara 63d9abc
Commits on Sep 12, 2012
David Chelimsky Gemfile-custom updates 8c93c27
@woahdae woahdae 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

    describe Foo
      it 'should have a name greater than 20 characters on publication' do = 'too short' have(1).error_on(:name, context: :publication)
@alindeman alindeman Merge branch 'errors_on_with_validation_context' a875557
@alindeman alindeman Changelog for #605
[ci skip]
@alindeman alindeman Uses latest versions of Rails for CI 7a019a6
Commits on Sep 13, 2012
@alindeman alindeman Fixes name of ActiveRecord deprecated finders gem f48946e
@alindeman alindeman Installs bundler 1.2 on Travis which is required for Rails master 410ad03
@alindeman alindeman Reduces time needed to install/compile gems on @travis-ci 171f869
Commits on Sep 15, 2012
@alindeman alindeman Simply install the latest version of bundler f9d696b
@alindeman alindeman --trace runs of tests inside the sample app (debugging travis weirdness) bc5956a
@alindeman alindeman 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.
Commits on Sep 16, 2012
@alindeman alindeman Abort with non-zero exit status if any command fails 4dddd85
Commits on Sep 18, 2012
@agirorn agirorn Using contain in the View specs example is misleading because it does…
… not work without including an extra gem.
Commits on Sep 19, 2012
@dchelimsky dchelimsky Merge pull request #608 from agirorn/use_include_in_view_spec_example
Using contain in the View specs example is misleading.
Commits on Sep 24, 2012
@alindeman alindeman Scaffolded controller specs are compatible with Rails 4
* Rails 4 introduces
* 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.
Commits on Sep 25, 2012
@alindeman alindeman Merge pull request #611 from alindeman/rails4
Scaffolded controller specs are compatible with Rails 4
Commits on Oct 01, 2012
@alindeman alindeman Adds example of using render_template in a view spec
* This is currently failing under Rails 4.0
@alindeman alindeman Correctly assign @gadgets so the view renders properly 8474e9d
Commits on Oct 04, 2012
@blowmage blowmage 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.
@blowmage blowmage 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.
Commits on Oct 05, 2012
@dchelimsky dchelimsky Merge pull request #615 from blowmage/minitest-rails
Allow rspec-rails rake task to live with minitest-rails
Commits on Oct 06, 2012
@dchelimsky dchelimsky include Capybara::DSL and Capybara::RSpecMatchers in spec/features 9332167
@dchelimsky dchelimsky add RequestExampleGroup to specs in spec/api 1c9e2b7
@dchelimsky dchelimsky Changelog 0dbd908
@dchelimsky dchelimsky include RailsExampleGroup in spec/features (necessary when there is n…
…o AR)
Commits on Oct 07, 2012
@alindeman alindeman Sets `#controller_path` in all versions of Rails
* Fixes #316
@alindeman alindeman Merge branch 'issue_316' 3214564
Commits on Oct 09, 2012
@alindeman alindeman Improves developer documentation 1f8b20d
@alindeman alindeman Be a little more forgiving when RAILS_VERSION or .rails-version does …
…not exist
Commits on Oct 12, 2012
@vanstee vanstee Identify ruby code for syntax highlighting
Fixes #617
@alindeman alindeman Merge pull request #619 from vanstee/ruby_file_doc_strings
Identify ruby code for syntax highlighting
Commits on Oct 13, 2012
@alindeman alindeman Generated specs support module namespacing (e.g., in a Rails engine)
* Fixes #448
Commits on Oct 14, 2012
@dchelimsky dchelimsky add a41a95b
@dchelimsky dchelimsky prep for 2.11.1 d568851
@dchelimsky dchelimsky need to add to .yardopts 3d54ead
@dchelimsky dchelimsky one more rename c5bdbfb
@dchelimsky dchelimsky better capy integration docs 6f551cd
@dchelimsky dchelimsky tweak capy integration docs 732e148
@dchelimsky dchelimsky gotta add files to gemspec too 2a1eac6
@dchelimsky dchelimsky OMG, DRY violations in docs - prep for 2.11.4 087f8f1
Commits on Oct 17, 2012
@jfirebaugh jfirebaugh Fix bare #render in view specs on Rails 3.1
656ff3 made this compatible with 3.2 by splitting the
name of the template in the description into its base
name, locale, format and handler components, but in
doing so broke compatibility with 3.1 and earlier,
which does not support the extra options.
Commits on Oct 20, 2012
@alindeman alindeman Merge pull request #624 from jfirebaugh/render_3.1
Fix bare #render in view specs on Rails 3.1
@alindeman alindeman Changelog for #624 [ci skip] b8392ac
@bjnord bjnord Removes AutoTest config/ exception
* Mappings for files under config/ will work
* Fixes #625
* Closes 627
Commits on Oct 24, 2012
@alindeman alindeman Adds custom failure messages for #be_new_record matcher
* Fixes #628
Commits on Oct 27, 2012
@alindeman alindeman A first stab of fixing `assert_template` in Rails 4 view specs
* It's relatively unobtrustive, but feels quite dirty. I'm hoping this
  is a temporary fix that produces feedback on something better.
@alindeman alindeman Capybara feature specs may use Rails URL helpers 96e1c33
@alindeman alindeman Documents how to customize `rake spec`
* Closes #521
Commits on Nov 06, 2012
@jayeff jayeff Fix link to on
reflect rename
@dchelimsky dchelimsky Merge pull request #633 from jayeff/master was renamed, reflect this change in
@alindeman alindeman Merge pull request #630 from alindeman/capybara_url_helpers
Capybara feature specs may use Rails URL helpers
Commits on Nov 09, 2012
Fixed confusing type error.
@alindeman alindeman Merge pull request #634 from TKAB/patch-1
Really rspec-2.11.1 or rspec-rails-2.11.1
@alindeman alindeman Revert "Capybara feature specs may use Rails URL helpers"
This reverts commit 96e1c33.

* We'll instead use an implementation that adds a proper
  FeatureExampleGroup (see #632)
Commits on Nov 10, 2012
@jnicklas jnicklas Add example group for features
This fixes various issues with the integration between RSpec and Capybara 2.0.

- It includes Route helpers, these were previously unavailable, due to
  the fact that the only reason they are available in request spec is
  that those delegate via method_missing to an IntegrationTest instance.

- It adds the `:feature` type to all features. This way people can
  include module into `:type => :feature` examples and they will work
  when their specs are places in this folder.

David previously commented that he didn't want to add Capybara specific
behaviour outside of `rspec/rails/capybara`. I was careful to avoid
doing that. The feature example group does not explicitly include
Capybara, instead, Capybara is included due to Capybara itself hooking
into `:type => :feature`. This is much cleaner than the way it was

I tested this against both a freshly generated Rails app, as well as an
existing, rather large project, both worked well.
Commits on Nov 11, 2012
@alindeman alindeman Adds cukes for feature specs (capybara integration) 6e68bdd
@alindeman alindeman Replaces `match` with `get`. `match` is removed in Rails 4 56473fd
Commits on Nov 12, 2012
@dchelimsky dchelimsky Add rails-2.3.9 to travis config a731794
Commits on Nov 13, 2012
@alindeman alindeman prep for 2.12 dcabc3a
@alindeman alindeman Wraps code in backticks
[ci skip]
@alindeman alindeman Updates cucumber feature for changes to ActiveRecord in Rails 4
* Rails 4 deprecates #scoped in favor of #all
@alindeman alindeman Updates to rake 10 as 0.9.3 introduces incompatibilities bbd6f36
@dchelimsky dchelimsky --trace is now --backtrace fb9eda1
@dchelimsky dchelimsky bump version to 2.12 edd4a73
Commits on Jan 07, 2013
@xentek xentek check for ActiveRecord::Assocations 10b1164
@alindeman alindeman Changelog for #637 [ci skip] ed94cd1
@jfirebaugh jfirebaugh Don't assume ActiveModel is available
Like ActiveRecord, it is optional and its railtie may not
have been required.
@bcardarella bcardarella README doesn't reflect actual installed gems
'rspec' is not longer installed:
@pascalj pascalj Prevent inclusion if the directory doesn't exactly match the path
For example spec/apifoobar should not have the RequestExampleGroup included
but spec/api should.
Documents also the two additional paths for integration tests, spec/integration and
@ywen ywen `subject.should be_valid` works correctly with ActiveResource models
* ... where valid? does not take an argument
* Closes #648
@alindeman alindeman Rails assertions are isolated to their own class
* This allows Rails assertions to use minitest assertion methods like
  `assert_equal` and `message` without interfering with RSpec example
  groups. Especially in the case of something like `message`, it's
  plausible that a user would setup a `let(:message)` and we would not
  want it to conflict with Rails attempting to use the `message` method
  from minitest.

* The use of class variables is unfortunate, but it's the only way I
  could think of (right now) to avoid using `define_method` and paying
  the price of a closure for every method call to the isolated class.

* Fixes #635
@alindeman alindeman Supports MRI 1.9.2 and nixes the use of class variables 2947304
@alindeman alindeman Supports Rails 4 where each model has its own Relation subclass 7ff9568
@alindeman alindeman Changelog 0e6383a
@alindeman alindeman Corrects Changelog entry
[ci skip]
@alindeman alindeman Revert "Supports Rails 4 where each model has its own Relation subclass"
This reverts commit 3b28ce7.

* OperatorRegistry now matches on ancestor chain, so this change is no
  longer necessary. See
@alindeman alindeman Fixes typo in link href
* Fixes #654
@pcasaretto pcasaretto Add cuke feature explaining custom routes 51c7744
@alindeman alindeman Anonymous controllers define `_routes`
* To support redirection and generation of URLs from other contexts
* Fixes #573
@alindeman alindeman Uses the latest version of Rails by default
* This will require bumping this version periodically, but leaving the
  version has caused hanging of the `bundle` command for some folks
@alindeman alindeman Changelog for #573 a273236
@alindeman alindeman Fixes changes link 87b11b8
@alindeman alindeman Adds __FILE__ and __LINE__ for better backtraces in class_eval code a5eab46
@alindeman alindeman Supports Rails 4 again
* Requires Bundler 1.3.0.pre
* Has its own `bin/` directory
@alindeman alindeman Changelog for 2.12.1 50cc0f8
@alindeman alindeman Dir.exist? is not available on 1.8.7; use instead 2178f10
@alindeman alindeman Bumps to v2.12.1 f3ab49d
@alindeman alindeman Fixes Changelog link fdbba27
Commits on Jan 12, 2013
@alindeman alindeman Revert "Anonymous controllers define `_routes`"
This reverts commit 09793f8.

* We ended up breaking specs that relied on non-anonymous routes. We
  will investigate a better solution for 2.13 instead.
@alindeman alindeman Bumps version to 2.12.2
[ci skip]
@alindeman alindeman Bumps to the latest versions of Rails cf7a182
@alindeman alindeman Adds regression feature for referring to application routes within an…
… anonymous controller
Commits on Jan 13, 2013
@alindeman alindeman Avoids 1.9 syntax 99eb004