Sha256: 07d48d326ba0237a6046bc2ece751159e074cfc1bcdae92a424c610489101924

Contents?: true

Size: 538 Bytes

Versions: 44

Compression:

Stored size: 538 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

44 entries across 36 versions & 3 rubygems

Version Path
rubyntlm-0.6.5 spec/support/shared/examples/net/ntlm/field_shared.rb
rubyntlm-0.6.4 spec/support/shared/examples/net/ntlm/field_shared.rb
vagrant-unbundled-2.2.19.0 vendor/bundle/ruby/3.0.0/gems/rubyntlm-0.6.3/spec/support/shared/examples/net/ntlm/field_shared.rb
vagrant-unbundled-2.2.18.0 vendor/bundle/ruby/3.0.0/gems/rubyntlm-0.6.3/spec/support/shared/examples/net/ntlm/field_shared.rb
vagrant-unbundled-2.2.16.0 vendor/bundle/ruby/2.7.0/gems/rubyntlm-0.6.2/spec/support/shared/examples/net/ntlm/field_shared.rb
vagrant-unbundled-2.2.16.0 vendor/bundle/ruby/3.0.0/gems/rubyntlm-0.6.3/spec/support/shared/examples/net/ntlm/field_shared.rb
rubyntlm-0.6.3 spec/support/shared/examples/net/ntlm/field_shared.rb
vagrant-unbundled-2.2.14.0 vendor/bundle/ruby/2.7.0/gems/rubyntlm-0.6.2/spec/support/shared/examples/net/ntlm/field_shared.rb
vagrant-unbundled-2.2.10.0 vendor/bundle/ruby/2.7.0/gems/rubyntlm-0.6.2/spec/support/shared/examples/net/ntlm/field_shared.rb
vagrant-unbundled-2.2.9.0 vendor/bundle/ruby/2.7.0/gems/rubyntlm-0.6.2/spec/support/shared/examples/net/ntlm/field_shared.rb
vagrant-unbundled-2.2.8.0 vendor/bundle/ruby/2.7.0/gems/rubyntlm-0.6.2/spec/support/shared/examples/net/ntlm/field_shared.rb
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.4.0/gems/rubyntlm-0.6.2/spec/support/shared/examples/net/ntlm/field_shared.rb
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.6.0/gems/rubyntlm-0.6.2/spec/support/shared/examples/net/ntlm/field_shared.rb
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.7.0/gems/rubyntlm-0.6.2/spec/support/shared/examples/net/ntlm/field_shared.rb
vagrant-unbundled-2.2.6.2 vendor/bundle/ruby/2.6.0/gems/rubyntlm-0.6.2/spec/support/shared/examples/net/ntlm/field_shared.rb
vagrant-unbundled-2.2.6.1 vendor/bundle/ruby/2.6.0/gems/rubyntlm-0.6.2/spec/support/shared/examples/net/ntlm/field_shared.rb
vagrant-unbundled-2.2.6.0 vendor/bundle/ruby/2.6.0/gems/rubyntlm-0.6.2/spec/support/shared/examples/net/ntlm/field_shared.rb
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.6.0/gems/rubyntlm-0.6.2/spec/support/shared/examples/net/ntlm/field_shared.rb
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.5.0/gems/rubyntlm-0.6.2/spec/support/shared/examples/net/ntlm/field_shared.rb
vagrant-unbundled-2.2.4.0 vendor/bundle/ruby/2.5.0/gems/rubyntlm-0.6.2/spec/support/shared/examples/net/ntlm/field_shared.rb