Skip to content

Commit c4d34da

Browse files
committed
Fix scaffolded index and new specs
1 parent 353967d commit c4d34da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/generators/rspec/scaffold/templates/request_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@
3131
describe "GET /index" do
3232
it "renders a successful response" do
3333
<%= class_name %>.create! valid_attributes
34-
get <%= "#{index_helper}_path" %>
34+
get <%= "#{index_helper}_url" %>
3535
expect(response).to be_successful
3636
end
3737
end
3838
<% end -%>
3939

4040
describe "GET /new" do
4141
it "renders a successful response" do
42-
get <%= "#{new_helper}_path" %>
42+
get <%= "#{new_helper}" %>
4343
expect(response).to be_successful
4444
end
4545
end

0 commit comments

Comments
 (0)