Sha256: 65f0de8b21c3d7181b221bc17e92993b929834692dec495916a90caef6c1f6d9

Contents?: true

Size: 436 Bytes

Versions: 1

Compression:

Stored size: 436 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Relation, '#[]' do
  subject { object[name] }

  let(:name)      { :id                                                    }
  let(:attribute) { Attribute::Integer.new(name)                           }
  let(:object)    { described_class.new([ attribute ], LazyEnumerable.new) }

  before do
    object.should be_instance_of(described_class)
  end

  it { should equal(attribute) }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
axiom-0.1.0 spec/unit/axiom/relation/element_reader_spec.rb