Sha256: 10023a611bbc9aa4b10389bac986e93f761cefd3a80d132589474999aa9da69a

Contents?: true

Size: 457 Bytes

Versions: 2

Compression:

Stored size: 457 Bytes

Contents

require 'spec_helper'

describe "QBFC::Element(finders)" do

  before(:each) do 
    @integration = QBFC::Integration::reader
    @sess = @integration.session
  end
  
  after(:each) do 
    @integration.close
  end
  
  it "should return a subclass of a base_class (e.g. Entity)" do
    entity = QBFC::Entity.find(@sess, "Bob Customer")
    entity.should be_kind_of(QBFC::Customer)
    entity.name.should == "Bob Customer"
  end
  
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
jm81-qbfc-0.3.0 spec/integration/element_finders_spec.rb
qbfc-0.3.0 spec/integration/element_finders_spec.rb