Sha256: 54efd7154ac123dca8372839180e3ddaf374cc6ddba8857c3e40dcdd133980a2

Contents?: true

Size: 660 Bytes

Versions: 7

Compression:

Stored size: 660 Bytes

Contents

require File.join(File.dirname(__FILE__), '..', '..', 'spec_helper')

describe PivotalTracker::Activity do

  context "without a specified project" do
    it "should return an array of activities" do
      PivotalTracker::Activity.all.should be_a(Array)
      PivotalTracker::Activity.all.first.should be_a(PivotalTracker::Activity)
    end
  end

  context "with a specified project" do
    before do
      @project = PivotalTracker::Project.find(PROJECT_ID)
    end

    it "should return an array of activities" do
      @project.activities.all.should be_a(Array)
      @project.activities.all.first.should be_a(PivotalTracker::Activity)
    end
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
pivotal-tracker-0.2.1 spec/unit/pivotal-tracker/activity_spec.rb
pivotal-tracker-0.2.0 spec/unit/pivotal-tracker/activity_spec.rb
pivotal-tracker-0.1.3 spec/unit/pivotal-tracker/activity_spec.rb
pivotal-tracker-0.1.2 spec/unit/pivotal-tracker/activity_spec.rb
pivotal-tracker-0.1.1 spec/unit/pivotal-tracker/activity_spec.rb
pivotal-tracker-0.1.0.1 spec/unit/pivotal-tracker/activity_spec.rb
pivotal-tracker-0.1.0 spec/unit/pivotal-tracker/activity_spec.rb