Sha256: ee5a796192913837c23e18d1cd890db6347c2fcd4d8125c62fd980ab5978f664

Contents?: true

Size: 521 Bytes

Versions: 3

Compression:

Stored size: 521 Bytes

Contents

require "./spec/spec_helper"

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

  it "inherits from Economic::Entity" do
    expect(Economic::Entry.ancestors).to include(Economic::Entity)
  end

  describe ".proxy" do
    it "should return a EntryProxy" do
      expect(subject.proxy).to be_instance_of(Economic::EntryProxy)
    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/entry_spec.rb
rconomic-0.6.1 spec/economic/entry_spec.rb
rconomic-0.6.0 spec/economic/entry_spec.rb