Sha256: 9c0cd63a3d01a60a7742d69c191b2d936ca2ebdcb8aa7b037ab5c048a7697534
Contents?: true
Size: 620 Bytes
Versions: 2
Compression:
Stored size: 620 Bytes
Contents
require_relative 'minitest_helper' describe TrackerApi::Resources::Story do let(:pt_user) { PT_USER_1 } let(:client) { TrackerApi::Client.new token: pt_user[:token] } let(:project_id) { pt_user[:project_id] } let(:project) { VCR.use_cassette('get project') { client.project(project_id) } } describe '.tasks' do it "gets all tasks for this story" do VCR.use_cassette('get tasks', record: :new_episodes) do tasks = project.story('66728004').tasks tasks.wont_be_empty task = tasks.first task.must_be_instance_of TrackerApi::Resources::Task end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tracker_api-0.2.5 | test/story_test.rb |
tracker_api-0.2.4 | test/story_test.rb |