Sha256: 0517817973ad8643cad9a7623d849bd1c46338e08175953874d23b890cb1e5e0

Contents?: true

Size: 366 Bytes

Versions: 4

Compression:

Stored size: 366 Bytes

Contents

require 'spec_helper'
module Alf
  describe AttrList, 'include?' do

    let(:list){ AttrList[:id, :name] }

    subject{ list.include?(attribute) }

    context 'when included' do
      let(:attribute){ :id }

      it{ should be_true }
    end

    context 'when not included' do
      let(:attribute){ :notthatone }

      it{ should be_false }
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
alf-core-0.15.0 spec/unit/alf-types/attr_list/test_include.rb
alf-core-0.14.0 spec/unit/alf-types/attr_list/test_include.rb
alf-core-0.13.1 spec/unit/alf-types/attr_list/test_include.rb
alf-core-0.13.0 spec/unit/alf-types/attr_list/test_include.rb