Skip to content

Commit

Permalink
Nothing "custom" about this.
Browse files Browse the repository at this point in the history
  • Loading branch information
justinko committed Jun 24, 2012
1 parent 2fc6473 commit 1a9d160
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions spec/rspec/rails/example/request_example_group_spec.rb
Expand Up @@ -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
Expand Down

0 comments on commit 1a9d160

Please sign in to comment.