Skip to content

Commit

Permalink
Add failing spec for #1652
Browse files Browse the repository at this point in the history
  • Loading branch information
sclinede committed Jan 9, 2020
1 parent 86a5c1f commit a9adc65
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions spec/rspec/rails/example/controller_example_group_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,30 @@ def my_helper

example.foos_url
end

context "when controller is not a stub" do
class SomeController < ActionController::Base
def index
render text: 'ok'
end
end

let(:group) { group_for SomeController }
let(:controller) { SomeController }

it "properly delegates routing assertions" do
with_isolated_stderr do
example.with_routing do |map|
map.draw do
get 'some/index' => "r_spec/rails/some#index"
end

expect { example.get :index }.not_to raise_error
end
end
end
end

end

describe "#bypass_rescue" do
Expand Down

0 comments on commit a9adc65

Please sign in to comment.