Sha256: a312f1adac40b1c49b1c17ef68b33e6cc686a815a029dfe91c7baa164d5d00ff
Contents?: true
Size: 929 Bytes
Versions: 1
Compression:
Stored size: 929 Bytes
Contents
require 'spec_helper' describe Teamwork::Client::Project do before(:each) { authenticate } context "#project_activity" do let(:project_id) { ENV["PROJECT_ID"] } let(:activity) { Teamwork.project_activity(project_id) } it "retrieves activity" do expect(activity).to be_a(Array) end it "isn't empty" do expect(activity).to_not be_empty end end context "#project_timers" do # This one is interesting as if timers have not been enabled for # the project the API returns a 404 rather than an empty array. # The difficulty here is that listing all the projects doesn't show whether # the project has enabled a timer or not. We will need to set something # up with VCR here. let(:project_id) { ENV["PROJECT_ID"] } let(:timers) { Teamwork.project_timers(project_id) } it "retrieves activity" do expect(timers).to be_a(Array) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
teamworkpm-2.0.0 | spec/teamwork/client/project_spec.rb |