Sha256: 901b22d590ba19031ac7281aef40c5b7b545c10a71b85e9b7091f7623db30d9e

Contents?: true

Size: 1.11 KB

Versions: 16

Compression:

Stored size: 1.11 KB

Contents

require 'spec_helper'

describe "Management" do
  before :each do
    @user = Legato::User.new(access_token)
  end

  context "Management::Account" do
    use_vcr_cassette 'management/accounts'

    it 'has accounts' do
      accounts = Legato::Management::Account.all(@user)
      accounts.map(&:id).should == ["1189765", "3879168", "7471517", "11360836", "11917142", "17306519"]
    end
  end

  context "Management::WebProperty" do
    use_vcr_cassette 'management/web_properties'

    it 'has web properties' do
      web_properties = Legato::Management::WebProperty.all(@user)
      web_properties.map(&:id).include?("UA-1189765-4").should == true
    end
  end

  context "Management::Profile" do
    use_vcr_cassette 'management/profiles'

    it 'has profiles' do
      profiles = Legato::Management::Profile.all(@user)
      profiles.map(&:id).include?("4506212").should == true
    end
  end

  context "Management::Finder without results" do
    use_vcr_cassette 'management/no_profiles'

    it 'has no profiles' do
      profiles = Legato::Management::Profile.all(@user)
      profiles.map(&:id).should == []
    end
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/legato-0.7.0/spec/integration/management_spec.rb
legato-0.7.0 spec/integration/management_spec.rb
legato-0.6.2 spec/integration/management_spec.rb
legato-0.6.1 spec/integration/management_spec.rb
legato-0.6.0 spec/integration/management_spec.rb
legato-0.5.2 spec/integration/management_spec.rb
legato-0.5.1 spec/integration/management_spec.rb
legato-0.5.0 spec/integration/management_spec.rb
legato-0.4.0 spec/integration/management_spec.rb
legato-0.3.3 spec/integration/management_spec.rb
legato-0.3.2 spec/integration/management_spec.rb
legato-0.3.1 spec/integration/management_spec.rb
legato-0.3.0 spec/integration/management_spec.rb
legato-0.2.0 spec/integration/management_spec.rb
legato-0.1.0 spec/integration/management_spec.rb
legato-0.0.10 spec/integration/management_spec.rb