Sha256: 3a427f485137d520dd2c1cbeaa438f4deb4445bee286bb7638e34ca898ea19f0

Contents?: true

Size: 535 Bytes

Versions: 3

Compression:

Stored size: 535 Bytes

Contents

require 'spec_helper'
module Finitio
  describe Heading, "allow_extra" do

    let(:r){ Attribute.new(:r, intType) }

    def heading(attributes, options = nil)
      Heading.new(attributes, options)
    end

    it 'is false by default' do
      expect(heading([r])).not_to be_allow_extra
    end

    it 'can be set to true' do
      expect(heading([r], allow_extra: true)).to be_allow_extra
    end

    it 'can be set to false explicitely' do
      expect(heading([r], allow_extra: false)).not_to be_allow_extra
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
finitio-0.5.2 spec/heading/test_allow_extra.rb
finitio-0.5.1 spec/heading/test_allow_extra.rb
finitio-0.5.0 spec/heading/test_allow_extra.rb