Sha256: 3d7e04d5c0cc9179a293a89dfbce77b47d597f228f2b482163fe180756a832da

Contents?: true

Size: 562 Bytes

Versions: 10

Compression:

Stored size: 562 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

10 entries across 10 versions & 1 rubygems

Version Path
you_got_listed-0.3.3 spec/you_got_listed/accounts_spec.rb
you_got_listed-0.3.2 spec/you_got_listed/accounts_spec.rb
you_got_listed-0.3.1 spec/you_got_listed/accounts_spec.rb
you_got_listed-0.3.0 spec/you_got_listed/accounts_spec.rb
you_got_listed-0.2.5 spec/you_got_listed/accounts_spec.rb
you_got_listed-0.2.4 spec/you_got_listed/accounts_spec.rb
you_got_listed-0.2.3 spec/you_got_listed/accounts_spec.rb
you_got_listed-0.2.2 spec/you_got_listed/accounts_spec.rb
you_got_listed-0.2.1 spec/you_got_listed/accounts_spec.rb
you_got_listed-0.2.0 spec/you_got_listed/accounts_spec.rb