Sha256: bc5fe32908bb590e3db798edce3fe2ade00c3dd77d28fb6a5dd8a3b20d946c56

Contents?: true

Size: 532 Bytes

Versions: 3

Compression:

Stored size: 532 Bytes

Contents

require "./spec/spec_helper"

describe Economic::CreditorEntry do
  let(:session) { make_session }
  subject { Economic::CreditorEntry.new(:session => session) }

  it "inherits from Economic::Entity" do
    expect(subject).to be_a(Economic::Entity)
  end

  describe "#proxy" do
    it "should return a CreditorEntryProxy" do
      expect(subject.proxy).to be_instance_of(Economic::CreditorEntryProxy)
    end

    it "should return a proxy owned by session" do
      expect(subject.proxy.session).to eq(session)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rconomic-0.7.0 spec/economic/creditor_entry_spec.rb
rconomic-0.6.1 spec/economic/creditor_entry_spec.rb
rconomic-0.6.0 spec/economic/creditor_entry_spec.rb