Skip to content

Commit 7751ee3

Browse files
committed
Client.new_from_response testing
1 parent b792814 commit 7751ee3

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

spec/core/data_spec.rb

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
require 'core/spec_helper'
2+
3+
RSpec.describe ZendeskAPI::Data do
4+
describe ".new_from_response" do
5+
let(:response) { double(:response) }
6+
7+
it "returns an instance with the response" do
8+
expect(described_class.new_from_response(client, response))
9+
.to be_instance_of(ZendeskAPI::Client)
10+
end
11+
end
12+
13+
end

0 commit comments

Comments
 (0)