spec/support/shared/examples/net/ntlm/field_shared.rb in rubyntlm-0.6.1 vs spec/support/shared/examples/net/ntlm/field_shared.rb in rubyntlm-0.6.2

- old
+ new

@@ -1,25 +1,25 @@ -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 +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