Skip to content

Commit

Permalink
Fix rubocop-rspec-2.27.0 cop RSpec/Rails/HttpStatus warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
VitaliySerov committed Mar 1, 2024
1 parent 0f31209 commit 5eb9d7f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2023-12-28 19:50:45 UTC using RuboCop version 1.59.0.
# on 2024-03-01 11:00:16 UTC using RuboCop version 1.61.0.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
### Changes

* Check `dependabot` at 8:00 Moscow time daily
* Fix `rubocop-rspec-2.27.0` cop `RSpec/Rails/HttpStatus` warnings.

## 1.0.0 (2020-12-23)

Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,4 @@ DEPENDENCIES
yard

BUNDLED WITH
2.5.3
2.5.6
4 changes: 2 additions & 2 deletions spec/sinatra_post_to_redis/sinatra_post_to_redis_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
it 'allows send post notification' do
post '/', notification: 'hello rspec'

expect(last_response.status).to eq 200
expect(last_response).to have_http_status :ok
end

it 'allows post with two params' do
post '/', notification: 'hello rspec2', chat: 'test_chat'
expect(last_response.status).to eq 200
expect(last_response).to have_http_status :ok
end

it 'first_data is correct' do
Expand Down

0 comments on commit 5eb9d7f

Please sign in to comment.