Permalink
Browse files

Nothing "custom" about this.

  • Loading branch information...
1 parent 2fc6473 commit 1a9d160150b57bd13eb21bcd1eddf12b182239a5 @justinko justinko committed Jun 24, 2012
Showing with 3 additions and 12 deletions.
  1. +3 −12 spec/rspec/rails/example/request_example_group_spec.rb
@@ -14,24 +14,15 @@ module RSpec::Rails
group.metadata[:type].should eq(:request)
end
- describe "#app", :at_least_rails_3_1 do
- before do
- @orig_application = RSpec.configuration.application
- RSpec.configuration.application = RSpec::EngineExample
- end
-
- after do
- RSpec.configuration.application = @orig_application
- end
-
- it "sets app as custom application" do
+ describe '#app' do
+ it 'returns the RSpec.configuration.application' do
group = RSpec::Core::ExampleGroup.describe do
include RequestExampleGroup
end
example = group.new
- example.app.should eq(RSpec::EngineExample)
+ example.app.should eq(RSpec.configuration.application)
end
end
end

0 comments on commit 1a9d160

Please sign in to comment.