Sha256: eb20bd8e7c7dc276b7c22381180c15a63ed4a9672bd8cf0a787c798b8b611d25

Contents?: true

Size: 563 Bytes

Versions: 11

Compression:

Stored size: 563 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
    expect(subject.value).to eq(value)
  end

  it 'should set active from initialize options' do
    expect(subject.active).to eq(active)
  end

end

Version data entries

11 entries across 11 versions & 3 rubygems

Version Path
vagrant-unbundled-1.9.1.1 vendor/bundle/ruby/2.4.0/gems/rubyntlm-0.6.1/spec/support/shared/examples/net/ntlm/field_shared.rb
vagrant-compose-yaml-0.1.3 vendor/bundle/ruby/2.2.0/gems/rubyntlm-0.6.0/spec/support/shared/examples/net/ntlm/field_shared.rb
rubyntlm-0.6.1 spec/support/shared/examples/net/ntlm/field_shared.rb
vagrant-compose-yaml-0.1.2 vendor/bundle/ruby/2.2.0/gems/rubyntlm-0.6.0/spec/support/shared/examples/net/ntlm/field_shared.rb
vagrant-compose-yaml-0.1.1 vendor/bundle/ruby/2.2.0/gems/rubyntlm-0.6.0/spec/support/shared/examples/net/ntlm/field_shared.rb
vagrant-compose-yaml-0.1.0 vendor/bundle/ruby/2.2.0/gems/rubyntlm-0.6.0/spec/support/shared/examples/net/ntlm/field_shared.rb
vagrant-unbundled-1.8.5.2 vendor/bundle/ruby/2.3.0/gems/rubyntlm-0.6.0/spec/support/shared/examples/net/ntlm/field_shared.rb
vagrant-unbundled-1.8.5.1 vendor/bundle/ruby/2.3.0/gems/rubyntlm-0.6.0/spec/support/shared/examples/net/ntlm/field_shared.rb
vagrant-unbundled-1.8.4.2 vendor/bundle/ruby/2.3.0/gems/rubyntlm-0.6.0/spec/support/shared/examples/net/ntlm/field_shared.rb
vagrant-unbundled-1.8.4.1 vendor/bundle/ruby/2.3.0/gems/rubyntlm-0.6.0/spec/support/shared/examples/net/ntlm/field_shared.rb
rubyntlm-0.6.0 spec/support/shared/examples/net/ntlm/field_shared.rb