Skip to content


Subversion checkout URL

You can clone with
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
Commits on Sep 16, 2010
@dchelimsky dchelimsky Generate controller and view specs with the controller generarator
- Closes #205.
Commits on Sep 24, 2010
@dchelimsky dchelimsky Add --webrat-matchers flag to scaffold generator
- also get --skip-helper-specs to work properly
@dchelimsky dchelimsky Make spec temporarily pending
- need to figure out the failure before next release, but need to move
  on at this moment
Commits on Sep 28, 2010
@dchelimsky dchelimsky New be_new_record matcher delegates to persisted?
- prefer ActiveModel API over ActiveRecord
Commits on Sep 30, 2010
David Chelimsky and Josh Graham separate ActiveModel and ActiveRecord APIs in stub_model and mock_model 617a012
@paulrosania paulrosania ControllerExampleGroup uses controller as the implicit subject by def…

Restores functionality from RSpec 1.X.  Hat tip to jferris for the original
patch. (Closes #223)
@dchelimsky dchelimsky refactor spec ca16b51
Commits on Oct 02, 2010
@dchelimsky dchelimsky Hook into rails-3 generators using 3.0 and 3.1 APIs
- Rails-3.1 will change the API for hooking into generators from
  "config.generators" to "config.app_generators".
- This commit supports either.
@dchelimsky dchelimsky Rails 3.0.1 and up uses view_assigns instead of _assigns. This commit
supports both.
Commits on Oct 05, 2010
@dchelimsky dchelimsky Need to support view_assigns in either case. 5a35718
@dchelimsky dchelimsky update post-commit message 2c657da
@dchelimsky dchelimsky add some thor tasks to help with development 5aba0cd
@dchelimsky dchelimsky update history 7698f41
@dchelimsky dchelimsky bump version to 2.0.0.rc 17816d2
@dchelimsky dchelimsky Add -Ispec to rcov_opts in spec:rcov rake task.
- Closes #229.
Commits on Oct 06, 2010
@dchelimsky dchelimsky Revert "Add -Ispec to rcov_opts in spec:rcov rake task."
This reverts commit 2644b79.

- rspec-core now ensures that -Ispec is added to rcov_opts
@dchelimsky dchelimsky route_to delegates to assert_recognizes rather than assert_routing
- aligns better with the matcher name
- eliminates failures on alternate routes to same controllers
- route generation can be spec'd in the context of view specs
- Closes #221.
Commits on Oct 08, 2010
@dchelimsky dchelimsky Generate stub_model(X).as_new_record in generated "new" view specs
- Closes #232.
@dchelimsky dchelimsky add rails-related dirs to the default backtrace_clean_patterns 73051af
@matthewtodd matthewtodd Make Autotest::RailsRspec2 honor spec/support/*.rb
Previously, it looked at a subdirectory called "shared," but the
generated spec_helper guides us towards one named "support" instead.

(Alternatively, we could have changed the generated spec_helper to
suggest "shared" instead, but since cucumber uses "features/support,"
this seems like a good choice.)

- Closes #233.
@dchelimsky dchelimsky convert some befores to lets bfb7792
Commits on Oct 10, 2010
@dchelimsky dchelimsky words 98de837
@dchelimsky dchelimsky add a little relish 2a14c75
@dchelimsky dchelimsky words fffa8c8
@dchelimsky dchelimsky tweak post-install message b48ee00
@dchelimsky dchelimsky prep for 2.0.0 6526142
@dchelimsky dchelimsky lock down a couple of gems 3b69fd6
@dchelimsky dchelimsky one default,please fdc4160
Commits on Oct 11, 2010
@dchelimsky dchelimsky require 'rspec/core' before using RSpec.configure
- Closes #236.
@dchelimsky dchelimsky Generated mock_[model] method adds (optional) stubs on each reference.
- This fixes an edge case bug that appears when defining stubs using the
  lazy-eval'd block form (obj.stub(:m) {v}).
- Closes #218.
@dchelimsky dchelimsky words 953eefc
Commits on Oct 12, 2010
@dchelimsky dchelimsky Offer option to suppress generation of request spec
- also renamed a bunch of generator methods to make them all more
- Closes #237.
Commits on Oct 13, 2010
@dchelimsky dchelimsky words 1b82c1f
Commits on Oct 15, 2010
@baldowl baldowl Tweaked assign() to work with Ruby on Rails 3.0.1.
- Closes #243.
@dchelimsky dchelimsky Hack to ensure view_assigns does the right thing without checking the
Rails version.
@dchelimsky dchelimsky Dev: update thor tasks. 1bc06c8
@dchelimsky dchelimsky History e9dca62
@dchelimsky dchelimsky bump version to 2.0.1 235b79c
Commits on Oct 18, 2010
@dchelimsky dchelimsky update versions bdd0067
@dchelimsky dchelimsky words 1d9ce72
Commits on Oct 19, 2010
@dchelimsky dchelimsky Remove 'require "rspec/core/backward_compatibility"'
- Closes #248.
Commits on Oct 20, 2010
@dchelimsky dchelimsky -words 0f8d020
Commits on Oct 22, 2010
@dchelimsky dchelimsky update dependencies across development repos f28a689
Commits on Oct 23, 2010
@dchelimsky dchelimsky links to docs bb43457
Commits on Oct 24, 2010
@dchelimsky dchelimsky Properly deprecate integrate_views 49c87d5
Commits on Oct 31, 2010
@dchelimsky dchelimsky dependencies, deschmendencies deffa66
Commits on Nov 01, 2010
@dchelimsky dchelimsky run subdirectory tasks with_new_environment ebadb0f
Commits on Nov 06, 2010
@dchelimsky dchelimsky Move error[s]_on to ActiveModel::Validations so it can be used by other
ActiveModel compliant ORMs

- Closes #251.
@dchelimsky dchelimsky remove direct dep on arel b8ae95e
@dchelimsky dchelimsky just ask if AR is defined instead
- Closes #254.
@dchelimsky dchelimsky properly isolate cuke env c18002b
Commits on Nov 07, 2010
@dchelimsky dchelimsky Gemfile tweaks efbe630
@dchelimsky dchelimsky use bundler's mechanism, silly 90a5a58
@dchelimsky dchelimsky history 84d1f49
@dchelimsky dchelimsky bump to 2.1.0 59549cc
@dchelimsky dchelimsky update relish task 359b311
@dchelimsky dchelimsky update versions for development 2fc21b4
Commits on Nov 10, 2010
@jdelStrother jdelStrother Fix inclusion of default helper to ViewExampleGroup
I suspect it's been broken ever since
6f254ac60a95aab7eafc56f0f19267ca9cb6412a in rspec-core

- Closes #259.

Signed-off-by: Jonathan del Strother <>
@dchelimsky dchelimsky history 41b01ee
Commits on Nov 18, 2010
@dchelimsky dchelimsky Add License bcb4ba6
@dchelimsky dchelimsky history 14f0f4e
Commits on Nov 19, 2010
@dchelimsky dchelimsky No need to require RSpec::Matchers now that it's managed by
@dchelimsky dchelimsky History 52cf362
@dchelimsky dchelimsky History 68a7988
Commits on Nov 22, 2010
@dchelimsky dchelimsky Clarify RDoc for mock_model
- emphasize the fact that it supports the ActiveModel API, not
@dchelimsky dchelimsky Add gem dependency on rails ~> 3.0.0
- Closes #267.
@dchelimsky dchelimsky History 5ae898e
Commits on Nov 23, 2010
@dchelimsky dchelimsky Add stub_template method for view specs.
- supports stubbing partials rendered by views in view specs
- Closes #263.
@dchelimsky dchelimsky update history/upgrade w/ info about stub_template 012fd22
@dchelimsky dchelimsky don't generate :new_record? => false d38e51f
@dchelimsky dchelimsky revert changes that broke controller specs 883fe01
Commits on Nov 25, 2010
@dchelimsky dchelimsky method_missing is private 1657d18
@dchelimsky dchelimsky explain README links to documentation 1e2b17e
@rgarner rgarner Explicit template/layout render example
- Closes #270.
@dchelimsky dchelimsky upgrade to cucumber 0.9.4 f747082
Commits on Nov 28, 2010
@dchelimsky dchelimsky whitespace (silly) 5c1fce0
@dchelimsky dchelimsky prep for 2.2 release 840aa86
@dchelimsky dchelimsky bump version to 2.2 3025e80
Commits on Nov 29, 2010
@solnic solnic Depend on railties, activesupport and actionpack instead of monolithi…
…c rails gem

- Closes #275.
@dchelimsky dchelimsky history db88d25
@dchelimsky dchelimsky Update deps
- rspec ~> M.m.0 (3 digits instead of 2)
- rails gems >= 3.0.0 (not ~> 3.0.0)
Commits on Nov 30, 2010
@dchelimsky dchelimsky links 1a881dd
@dchelimsky dchelimsky Point cucumber dev dependency to my fork which depends on builder.
- filed pull request with cucumber project - can revert this if/when
  that is merged/released.
@dchelimsky dchelimsky Gemfile can still depend on rails for development 6eb2b25
Commits on Dec 01, 2010
@dchelimsky dchelimsky Got webrat working across request and controller specs
- added --webrat flag for request controller generator
- deprecated --webrat-matchers flag across generators
- Closes #277.
@dchelimsky dchelimsky bump version to 2.2.1 41ac174
@dchelimsky dchelimsky Make rails gem deps work for anything < 4.0 9bb8406
@dchelimsky dchelimsky bump version to 2.3.0.pre 211ae45
Commits on Dec 02, 2010
@dchelimsky dchelimsky docs 9394e97
Commits on Dec 07, 2010
@dchelimsky dchelimsky mock_model.respond_to?(xxx_before_type_cast) returns false
- Closes #266.
Commits on Dec 11, 2010
@dchelimsky dchelimsky Don't generate autotest/discover.rb f47e87b
@dchelimsky dchelimsky README for features (for relish) 7003fe6
@dchelimsky dchelimsky .rspec 5716c91
Commits on Dec 12, 2010
@dchelimsky dchelimsky the final frontier b92acde
@dchelimsky dchelimsky 1.8.7 regexps don't work the same way 1.9's do 9526037
@dchelimsky dchelimsky align Gemfiles across rspec dev repos 87e42c4
@dchelimsky dchelimsky prep for 2.3.0 release 888dd19
Commits on Dec 13, 2010
@dchelimsky dchelimsky organize relish nav 7f9921b
@dchelimsky dchelimsky Fix bug in which rspec:install generator tries to copy autotest files
that don't exist.

- Closes #283
@dchelimsky dchelimsky add .rspec file for autotest 7556316
@dchelimsky dchelimsky respond_to?(method, include_private=false)
- Closes #282.
Commits on Dec 14, 2010
@dchelimsky dchelimsky bump version to 2.4.0.pre a37ce52
Commits on Dec 17, 2010
@dchelimsky dchelimsky don't need to pass the 2nd arg to respond_to on public method 6fb82d1
@dchelimsky dchelimsky minor cuke adjustments 90955b2
@dchelimsky dchelimsky history 3243461
@dchelimsky dchelimsky add wip scenario for global render_views 44c81aa
@dchelimsky dchelimsky Add config.render_views for global setting to render views.
- Closes #291.
Commits on Dec 18, 2010
@dchelimsky dchelimsky dev-support: update relish task 86c6bc0
@dchelimsky dchelimsky use md for markdown files 2d89bc9
Commits on Dec 19, 2010
@dchelimsky dchelimsky Change a couple of message expectations to stubs in order to clarify
intent in generated controller specs.
Commits on Dec 20, 2010
@dchelimsky dchelimsky render_views (and render_views(false)) overrides parent setting in
nested groups.

- Closes #295.
Commits on Dec 21, 2010
@dchelimsky dchelimsky doc improvements (routing specs) 609acea
@dchelimsky dchelimsky helper spec tweak 6717927
@dchelimsky dchelimsky Include ApplicationHelper in helper object in helper specs.
- Closes #276.
@dchelimsky dchelimsky more history 713e4d8
Commits on Dec 23, 2010
@dchelimsky dchelimsky add Upgrade notes for relish site 8bb3cd5
@dchelimsky dchelimsky doc tweaks 026fb86
@dchelimsky dchelimsky Use ActiveSupport::TestCase::Assertion (which knows whether we're using
Test::Unit or MiniTest).

- Closes #297.
Commits on Dec 26, 2010
@dchelimsky dchelimsky doc improvements 20e1a6e
Commits on Dec 31, 2010
@spangenberg spangenberg This gem don't create any longer the autotest/discover.rb
- Closes #299.
Commits on Jan 01, 2011
@dchelimsky dchelimsky Include rails-specific example group extensions based on :type key.
- e.g. describe "something", :type => :controller do
- reworked internal module inclusion functionality
- include request spec extensions in spec/integration for ease of
  upgrade from rspec-rails-1.x
- Closes #256.
@dchelimsky dchelimsky Deprecate include_self_when_dir_matches 3882e0a
@dchelimsky dchelimsky history 0a9ac23
@dchelimsky dchelimsky docs 909fa3b
Commits on Jan 02, 2011
@dchelimsky dchelimsky Apply stubs immediately to mock_model generated in controller specs. ec3b8af
@dchelimsky dchelimsky prep for 2.4.0 release cad57a1
@dchelimsky dchelimsky doc tweak 5a5e26d
@dchelimsky dchelimsky doc tweaks 3a5cba4
Commits on Jan 03, 2011
@dchelimsky dchelimsky include RSpec::Rails::RailsExampleGroup before other modules that nee…
…d its services
@dchelimsky dchelimsky bump version to 2.4.1 e0fe809
@dchelimsky dchelimsky fix changelog links 90dadf2
@dchelimsky dchelimsky update versions and links 9959529
Commits on Jan 11, 2011
@dchelimsky dchelimsky bump cucumber to 0.10 a94f6f9
@dchelimsky dchelimsky set up connections in mock/stub_model specs
- less invasive than stubbing AR internals
Commits on Jan 15, 2011
@dchelimsky dchelimsky doc tweaks
- Closes #305.
Commits on Jan 16, 2011
@dchelimsky dchelimsky cukes 78a3307
@dchelimsky dchelimsky Fix bug where 'render_views(false)' in a nested group set value in its
parent group.
@CodeMonkeySteve CodeMonkeySteve Only include MailerExampleGroup if defined.
- Closes #307.
Commits on Jan 25, 2011
@dchelimsky dchelimsky separate Gemfiles for different versions of rails 25407a8
Commits on Jan 26, 2011
@dchelimsky dchelimsky update autotest integration doc dbe989e
@dchelimsky dchelimsky Update rdoc for controller specs.
- Closes #313.
Commits on Jan 27, 2011
@dchelimsky dchelimsky move some docs around 3b279c6
Commits on Feb 05, 2011
@r38y r38y Mock models should not be blank?. d33a28e
@dchelimsky dchelimsky changelog 1a0508a
@rezaprima rezaprima use index_helper instead of table_name for controller paths 057000c
@dchelimsky dchelimsky dev: add bundle install to thor rails:use 00b7ed1
@pacoguzman pacoguzman Fix typo => router to routes bb14e35
@dchelimsky dchelimsky changlog ad7fb9f
@dchelimsky dchelimsky _, _ 18c7d9d
@dchelimsky dchelimsky prep for 2.5 release dbc0485