Skip to content

Commit

Permalink
include RSpec::Rails::RailsExampleGroup before other modules that nee…
Browse files Browse the repository at this point in the history
…d its services
  • Loading branch information
dchelimsky committed Jan 3, 2011
1 parent 3a5cba4 commit bacf868
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 14 deletions.
8 changes: 8 additions & 0 deletions History.md
Original file line number Original file line Diff line number Diff line change
@@ -1,5 +1,13 @@
## rspec-rails-2 release history ## rspec-rails-2 release history


### 2.4.1 / 2011-01-03

[full changelog](http://github.com/rspec/rspec-rails/compare/v2.4.0...2.4.1)

* Bug fixes
* fixed bug caused by including some Rails modules before RSpec's
RailsExampleGroup

### 2.4.0 / 2011-01-02 ### 2.4.0 / 2011-01-02


[full changelog](http://github.com/rspec/rspec-rails/compare/v2.3.1...2.4.0) [full changelog](http://github.com/rspec/rspec-rails/compare/v2.3.1...2.4.0)
Expand Down
3 changes: 1 addition & 2 deletions lib/rspec/rails/example/controller_example_group.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -72,9 +72,8 @@ module RSpec::Rails
# #
module ControllerExampleGroup module ControllerExampleGroup
extend ActiveSupport::Concern extend ActiveSupport::Concern

include ActionController::TestCase::Behavior
include RSpec::Rails::RailsExampleGroup include RSpec::Rails::RailsExampleGroup
include ActionController::TestCase::Behavior
include RSpec::Rails::ViewRendering include RSpec::Rails::ViewRendering
include RSpec::Rails::Matchers::RedirectTo include RSpec::Rails::Matchers::RedirectTo
include RSpec::Rails::Matchers::RenderTemplate include RSpec::Rails::Matchers::RenderTemplate
Expand Down
3 changes: 1 addition & 2 deletions lib/rspec/rails/example/helper_example_group.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@ module RSpec::Rails
# #
module HelperExampleGroup module HelperExampleGroup
extend ActiveSupport::Concern extend ActiveSupport::Concern

include ActionView::TestCase::Behavior
include RSpec::Rails::RailsExampleGroup include RSpec::Rails::RailsExampleGroup
include ActionView::TestCase::Behavior
include RSpec::Rails::ViewAssigns include RSpec::Rails::ViewAssigns
include RSpec::Rails::BrowserSimulators include RSpec::Rails::BrowserSimulators


Expand Down
3 changes: 1 addition & 2 deletions lib/rspec/rails/example/mailer_example_group.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
module RSpec::Rails module RSpec::Rails
module MailerExampleGroup module MailerExampleGroup
extend ActiveSupport::Concern extend ActiveSupport::Concern

include ActionMailer::TestCase::Behavior
include RSpec::Rails::RailsExampleGroup include RSpec::Rails::RailsExampleGroup
include ActionMailer::TestCase::Behavior
include RSpec::Rails::BrowserSimulators include RSpec::Rails::BrowserSimulators


webrat do webrat do
Expand Down
1 change: 0 additions & 1 deletion lib/rspec/rails/example/model_example_group.rb
Original file line number Original file line Diff line number Diff line change
@@ -1,7 +1,6 @@
module RSpec::Rails module RSpec::Rails
module ModelExampleGroup module ModelExampleGroup
extend ActiveSupport::Concern extend ActiveSupport::Concern

include RSpec::Rails::RailsExampleGroup include RSpec::Rails::RailsExampleGroup


included do included do
Expand Down
1 change: 0 additions & 1 deletion lib/rspec/rails/example/rails_example_group.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ module RSpec
module Rails module Rails
module RailsExampleGroup module RailsExampleGroup
extend ActiveSupport::Concern extend ActiveSupport::Concern

include RSpec::Rails::SetupAndTeardownAdapter include RSpec::Rails::SetupAndTeardownAdapter
include RSpec::Rails::TestUnitAssertionAdapter include RSpec::Rails::TestUnitAssertionAdapter
end end
Expand Down
3 changes: 1 addition & 2 deletions lib/rspec/rails/example/request_example_group.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@ module RSpec::Rails
# => delegates to assert_redirected_to(destination) # => delegates to assert_redirected_to(destination)
module RequestExampleGroup module RequestExampleGroup
extend ActiveSupport::Concern extend ActiveSupport::Concern

include RSpec::Rails::RailsExampleGroup
include ActionDispatch::Integration::Runner include ActionDispatch::Integration::Runner
include ActionDispatch::Assertions include ActionDispatch::Assertions
include RSpec::Rails::RailsExampleGroup
include RSpec::Rails::BrowserSimulators include RSpec::Rails::BrowserSimulators


module InstanceMethods module InstanceMethods
Expand Down
3 changes: 1 addition & 2 deletions lib/rspec/rails/example/routing_example_group.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
module RSpec::Rails module RSpec::Rails
module RoutingExampleGroup module RoutingExampleGroup
extend ActiveSupport::Concern extend ActiveSupport::Concern

include ActionDispatch::Assertions::RoutingAssertions
include RSpec::Rails::RailsExampleGroup include RSpec::Rails::RailsExampleGroup
include ActionDispatch::Assertions::RoutingAssertions
include RSpec::Rails::Matchers::RoutingMatchers include RSpec::Rails::Matchers::RoutingMatchers


module InstanceMethods module InstanceMethods
Expand Down
3 changes: 1 addition & 2 deletions lib/rspec/rails/example/view_example_group.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ module RSpec::Rails
# end # end
module ViewExampleGroup module ViewExampleGroup
extend ActiveSupport::Concern extend ActiveSupport::Concern

include ActionView::TestCase::Behavior
include RSpec::Rails::RailsExampleGroup include RSpec::Rails::RailsExampleGroup
include ActionView::TestCase::Behavior
include RSpec::Rails::ViewAssigns include RSpec::Rails::ViewAssigns
include RSpec::Rails::Matchers::RenderTemplate include RSpec::Rails::Matchers::RenderTemplate
include RSpec::Rails::BrowserSimulators include RSpec::Rails::BrowserSimulators
Expand Down

0 comments on commit bacf868

Please sign in to comment.