Sha256: ca5c4c61db850871bceeef879ee42e24b3123360202ec5f7ab5d73e45b3aefc0

Contents?: true

Size: 519 Bytes

Versions: 18

Compression:

Stored size: 519 Bytes

Contents

require 'spec_helper'

describe AirbrakeAPI::Project do
  before(:all) do
    AirbrakeAPI.account = 'myapp'
    AirbrakeAPI.auth_token = 'abcdefg123456'
    AirbrakeAPI.secure = false
  end

  it "should have correct projects path" do
    AirbrakeAPI::Project.collection_path.should == "/data_api/v1/projects.xml"
  end

  it "should find projects" do
    projects = AirbrakeAPI::Project.find(:all)
    projects.size.should == 4
    projects.first.id.should == '1'
    projects.first.name.should == 'Venkman'
  end

end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
airbrake-api-4.6.0 spec/airbrake_api/project_spec.rb
airbrake-api-4.5.1 spec/airbrake_api/project_spec.rb
airbrake-api-4.5.0 spec/airbrake_api/project_spec.rb
airbrake-api-4.4.0 spec/airbrake_api/project_spec.rb
airbrake-api-4.3.0 spec/airbrake_api/project_spec.rb
airbrake-api-4.2.2 spec/airbrake_api/project_spec.rb
airbrake-api-4.2.1 spec/airbrake_api/project_spec.rb
airbrake-api-4.2.0 spec/airbrake_api/project_spec.rb
airbrake-api-4.1.3 spec/airbrake_api/project_spec.rb
airbrake-api-4.1.2 spec/airbrake_api/project_spec.rb
airbrake-api-4.1.1 spec/airbrake_api/project_spec.rb
airbrake-api-4.1.0 spec/airbrake_api/project_spec.rb
airbrake-api-4.0.0 spec/airbrake_api/project_spec.rb
airbrake-api-3.3.0 spec/airbrake_api/project_spec.rb
airbrake-api-3.2.3 spec/airbrake_api/project_spec.rb
airbrake-api-3.2.2 spec/airbrake_api/project_spec.rb
airbrake-api-3.2.1 spec/airbrake_api/project_spec.rb
airbrake-api-3.2.0 spec/airbrake_api/project_spec.rb