Skip to content

Commit

Permalink
Client.new_from_response testing
Browse files Browse the repository at this point in the history
  • Loading branch information
ecoologic committed Aug 21, 2023
1 parent b792814 commit 7751ee3
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions spec/core/data_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
require 'core/spec_helper'

RSpec.describe ZendeskAPI::Data do
describe ".new_from_response" do
let(:response) { double(:response) }

it "returns an instance with the response" do
expect(described_class.new_from_response(client, response))
.to be_instance_of(ZendeskAPI::Client)
end
end

end

0 comments on commit 7751ee3

Please sign in to comment.