Sha256: e11e91c22813e1c39d681dbb900fa97000a6b11bbb1ac621f0a8f9a03d3b47a0

Contents?: true

Size: 376 Bytes

Versions: 2

Compression:

Stored size: 376 Bytes

Contents

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

describe QBFC::QBCollection do

  before(:each) do
    @sess = mock(QBFC::Session)
  end

  it "should send missing methods to the Class specified, with the Session" do
    QBFC::Customer.should_receive(:find).with(@sess, :all)
    QBFC::QBCollection.new(@sess, 'Customer').find(:all)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
qbfc-0.1.0-x86-mswin32-60 spec/unit/qb_collection_spec.rb
qbfc-0.2.0-x86-mswin32-60 spec/unit/qb_collection_spec.rb