Sha256: f91e28ec8351105ff6e5c0a13a160b16e60f707747844486e5656e97027fd16b

Contents?: true

Size: 506 Bytes

Versions: 1

Compression:

Stored size: 506 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

[ :difference, :- ].each do |method|
  describe Relation::Header, "##{method}" do
    subject { object.send(method, other) }

    let(:attribute1) { [ :id,   Integer ]                  }
    let(:attribute2) { [ :name, String  ]                  }
    let(:object)     { described_class.new([ attribute1 ]) }
    let(:other)      { described_class.new([ attribute2 ]) }

    it { should be_kind_of(described_class) }

    it { should == [ attribute1 ] }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
veritas-0.0.4 spec/unit/veritas/relation/header/difference_spec.rb