test/client_test.rb in tracker_api-0.2.4 vs test/client_test.rb in tracker_api-0.2.5

- old
+ new

@@ -110,6 +110,19 @@ done_iterations.wont_be_empty done_iterations.length.must_be :<=, 12 end end end + + describe '.story' do + 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.must_be_instance_of TrackerApi::Resources::Story + end + end + end end