Skip to content

Commit

Permalink
Change the default generated request spec for hanami new (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
jodosha authored Oct 24, 2023
1 parent 2ff4ff4 commit 6351998
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions lib/hanami/rspec/generators/request.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# frozen_string_literal: true

RSpec.describe "Root", type: :request do
it "is successful" do
it "is not found" do
get "/"

# Find me in `config/routes.rb`
expect(last_response).to be_successful
expect(last_response.body).to eq("Hello from Hanami")
# Generate new action via:
# `bundle exec hanami generate action home.index --url=/`
expect(last_response.status).to be(404)
end
end
8 changes: 4 additions & 4 deletions spec/unit/hanami/rspec/commands/install_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,12 @@
# frozen_string_literal: true
RSpec.describe "Root", type: :request do
it "is successful" do
it "is not found" do
get "/"
# Find me in `config/routes.rb`
expect(last_response).to be_successful
expect(last_response.body).to eq("Hello from Hanami")
# Generate new action via:
# `bundle exec hanami generate action home.index --url=/`
expect(last_response.status).to be(404)
end
end
EOF
Expand Down

0 comments on commit 6351998

Please sign in to comment.