Skip to content

Commit

Permalink
Fix missing exception class
Browse files Browse the repository at this point in the history
Belongs to #89
  • Loading branch information
ledermann committed Jul 21, 2024
1 parent 47c6cb0 commit 85b55da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/shelly_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def record_hash
def raw_response
@raw_response ||= begin
response = connection.get '/rpc/Shelly.GetStatus'
raise Error, response.status unless response.success?
raise StandardError, response.status unless response.success?

response
end
Expand Down
2 changes: 1 addition & 1 deletion spec/lib/shelly_pull_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
end

context 'when it fails' do
it 'raises Shelly::Error and does not increment queue length' do
it 'raises an exception and does not increment queue length' do
allow(queue).to receive(:<<).and_raise(StandardError)

expect { shelly_pull.next }.to raise_error(StandardError)
Expand Down

0 comments on commit 85b55da

Please sign in to comment.