Sha256: 66d01f906d451a90ebad8edb3a963fb08df2e875ca7ca0d72b4f589f0f0899b2

Contents?: true

Size: 548 Bytes

Versions: 13

Compression:

Stored size: 548 Bytes

Contents

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

describe YouGotListed::Accounts do

  before do
    @ygl = new_ygl
    @accounts = YouGotListed::Accounts.new(@ygl)
  end

  context "search" do
    before do
      VCR.use_cassette('accounts.search') do
        @response = @accounts.search
      end
    end

    it "should be a success" do
      @response.success?.should be_true
    end

    it "should set accounts on the response" do
      @response.ygl_response.accounts.should be_kind_of(Hashie::Rash)
    end
  end

end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
you_got_listed-0.6.6 spec/you_got_listed/accounts_spec.rb
you_got_listed-0.6.5 spec/you_got_listed/accounts_spec.rb
you_got_listed-0.6.4 spec/you_got_listed/accounts_spec.rb
you_got_listed-0.6.3 spec/you_got_listed/accounts_spec.rb
you_got_listed-0.6.2 spec/you_got_listed/accounts_spec.rb
you_got_listed-0.6.1 spec/you_got_listed/accounts_spec.rb
you_got_listed-0.6.0 spec/you_got_listed/accounts_spec.rb
you_got_listed-0.5.1 spec/you_got_listed/accounts_spec.rb
you_got_listed-0.5.0 spec/you_got_listed/accounts_spec.rb
you_got_listed-0.4.0 spec/you_got_listed/accounts_spec.rb
you_got_listed-0.3.6 spec/you_got_listed/accounts_spec.rb
you_got_listed-0.3.5 spec/you_got_listed/accounts_spec.rb
you_got_listed-0.3.4 spec/you_got_listed/accounts_spec.rb