From 1a9d160150b57bd13eb21bcd1eddf12b182239a5 Mon Sep 17 00:00:00 2001 From: Justin Ko Date: Sat, 23 Jun 2012 21:30:40 -0600 Subject: [PATCH] Nothing "custom" about this. --- .../rails/example/request_example_group_spec.rb | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/spec/rspec/rails/example/request_example_group_spec.rb b/spec/rspec/rails/example/request_example_group_spec.rb index 6e99751518..d00d32bde2 100644 --- a/spec/rspec/rails/example/request_example_group_spec.rb +++ b/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