test/client_test.rb in tracker_api-0.2.12 vs test/client_test.rb in tracker_api-1.0.0
- old
+ new
@@ -128,12 +128,27 @@
let(:pt_user) { PT_USER_1 }
let(:client) { TrackerApi::Client.new token: pt_user[:token] }
it 'retrieves a story solely by story id' do
VCR.use_cassette('client: get single story by story id', record: :new_episodes) do
- story = client.story('66728004')
+ story = client.story('66728004', fields: ':default,owned_by')
story.must_be_instance_of TrackerApi::Resources::Story
+ story.owned_by.wont_be_nil
+ end
+ end
+ end
+
+ describe '.epic' do
+ let(:pt_user) { PT_USER_1 }
+ let(:client) { TrackerApi::Client.new token: pt_user[:token] }
+
+ it 'retrieves an epic solely by epic id' do
+ VCR.use_cassette('client: get single epic by epic id', record: :new_episodes) do
+ epic = client.epic('1087314', fields: ':default,label_id')
+
+ epic.must_be_instance_of TrackerApi::Resources::Epic
+ epic.label_id.wont_be_nil
end
end
end
describe '.notifictions' do