Sha256: 511a084f123ba9387f714f7ec364590aba08e60b7225432fbf79711312c374e6

Contents?: true

Size: 527 Bytes

Versions: 4

Compression:

Stored size: 527 Bytes

Contents

shared_examples_for 'a field' do  | value, active|

  subject do
    described_class.new({
        :value  => value,
        :active => active
    })
  end

  it { should respond_to :active }
  it { should respond_to :value }
  it { should respond_to :size }
  it { should respond_to :parse }
  it { should respond_to :serialize }


  it 'should set the value from initialize options' do
    subject.value.should == value
  end

  it 'should set active from initialize options' do
    subject.active.should == active
  end

end

Version data entries

4 entries across 4 versions & 3 rubygems

Version Path
vagrant-unbundled-1.8.1.1 vendor/bundle/ruby/2.3.0/gems/rubyntlm-0.4.0/spec/support/shared/examples/net/ntlm/field_shared.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/rubyntlm-0.4.0/spec/support/shared/examples/net/ntlm/field_shared.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/rubyntlm-0.4.0/spec/support/shared/examples/net/ntlm/field_shared.rb
rubyntlm-0.4.0 spec/support/shared/examples/net/ntlm/field_shared.rb