Sha256: 6a2c4f1e72c0f0811ded671a533c201e2b78dbcbeaf0b73361ec03c386537a8f

Contents?: true

Size: 664 Bytes

Versions: 5

Compression:

Stored size: 664 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

describe "TaskMapperPivotal" do

  before(:each) do 
    headers = {'X-TrackerToken' => '000000'}
    ActiveResource::HttpMock.respond_to do |mock|
      mock.get '/services/v3/projects.xml', headers, fixture_for('projects'), 200
    end
    @taskmapper = TaskMapper.new(:pivotal, {:token => '000000'})
  end

  it "should be able to instantiate a new instance" do
    @taskmapper.should be_an_instance_of(TaskMapper)
    @taskmapper.should be_a_kind_of(TaskMapper::Provider::Pivotal)
  end

  it "should return true with valid authentication" do 
    @taskmapper.valid?.should be_true
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
taskmapper-pivotal-0.9.1 spec/taskmapper-pivotal_spec.rb
taskmapper-pivotal-0.9.0 spec/taskmapper-pivotal_spec.rb
taskmapper-pivotal-0.8.2 spec/taskmapper-pivotal_spec.rb
taskmapper-pivotal-0.8.1 spec/taskmapper-pivotal_spec.rb
taskmapper-pivotal-0.8.0 spec/taskmapper-pivotal_spec.rb