spec/lib/net/ntlm/field_spec.rb in rubyntlm-0.4.0 vs spec/lib/net/ntlm/field_spec.rb in rubyntlm-0.5.0
- old
+ new
@@ -5,30 +5,30 @@
it_behaves_like 'a field', 'Foo', false
context 'with no size specified' do
let (:field_without_size) { Net::NTLM::Field.new({ :value => 'Foo', :active => true }) }
it 'should set size to 0 if not active' do
- field_without_size.size.should == 0
+ expect(field_without_size.size).to eq(0)
end
it 'should return 0 if active but no size specified' do
field_without_size.active = true
- field_without_size.size.should == 0
+ expect(field_without_size.size).to eq(0)
end
end
context 'with a size specified' do
let (:field_with_size) { Net::NTLM::Field.new({ :value => 'Foo', :active => true, :size => 100 }) }
it 'should return the size provided in the initialize options if active' do
- field_with_size.size.should == 100
+ expect(field_with_size.size).to eq(100)
end
it 'should still return 0 if not active' do
field_with_size.active = false
- field_with_size.size.should == 0
+ expect(field_with_size.size).to eq(0)
end
end
-end
\ No newline at end of file
+end