Sha256: 916a412b002cba30087956f705414ca3ea2df52507b6fcd6cfa38f2bb1c66f7f

Contents?: true

Size: 329 Bytes

Versions: 2

Compression:

Stored size: 329 Bytes

Contents

require '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 & 2 rubygems

Version Path
jm81-qbfc-0.3.0 spec/unit/qb_collection_spec.rb
qbfc-0.3.0 spec/unit/qb_collection_spec.rb