Skip to content

Commit

Permalink
Fix Honeybadger::Backend::Test.check_in
Browse files Browse the repository at this point in the history
  • Loading branch information
TastyPi committed Nov 4, 2022
1 parent f0d3057 commit 0416f88
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ CHANGELOG](http://keepachangelog.com/) for how to update this file. This project
adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]
### Fixed
- `Honeybadger.check_in` would raise an exception when used with the test backend (#449)

## [5.0.1] - 2022-10-27
### Fixed
Expand Down
1 change: 1 addition & 0 deletions lib/honeybadger/backend/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def notify(feature, payload)

def check_in(id)
check_ins << id
super
end
end
end
Expand Down
4 changes: 4 additions & 0 deletions spec/unit/honeybadger/backend/test_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,9 @@
it "saves check_in for review" do
expect { instance.check_in(10) }.to change { instance.check_ins }.from([]).to([10])
end

it "should return a Honeybadger::Backend::Response" do
expect(instance.check_in(10)).to be_a Honeybadger::Backend::Response
end
end
end

0 comments on commit 0416f88

Please sign in to comment.