Sha256: ba657c2e3e4f29e09baf9dbf269676509a7d9b7051430cae6a2e530cba449e65
Contents?: true
Size: 445 Bytes
Versions: 2
Compression:
Stored size: 445 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe BookingSync::Client do subject { BookingSync::Client.new(:id => 1) } it { should be_a_kind_of BookingSync::Client } it_should_behave_like "a paginated class" it "#bookings" do BookingSync::Booking.should_receive(:find_all_across_pages).with(:from=>"/clients/1/bookings.xml").and_return("bookings") subject.bookings.should == 'bookings' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bookingsync-0.1.1 | spec/bookingsync/client_spec.rb |
bookingsync-0.1.0 | spec/bookingsync/client_spec.rb |