Skip to content

Commit

Permalink
Test feedback without occurred_at
Browse files Browse the repository at this point in the history
  • Loading branch information
ottony committed Nov 12, 2024
1 parent 4de83aa commit b0e6f9f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions spec/incognia_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,21 @@ module Incognia
end
end

context "when not receiving occurred_at" do
it "hits the endpoint without occurred_at" do
stub = stub_register_feedback_request.with(
body: { event: event },
headers: {
'Content-Type' => 'application/json', 'Authorization' => /Bearer.*/
}
)

described_class.register_feedback(event: event)

expect(stub).to have_been_made.once
end
end

context "when receiving expires_at as a Time" do
let(:expires_at) { Time.now }

Expand Down

0 comments on commit b0e6f9f

Please sign in to comment.