spec/sequence_examples.rb in ruby-nmap-0.7.0 vs spec/sequence_examples.rb in ruby-nmap-0.8.0
- old
+ new
@@ -2,9 +2,11 @@
shared_examples_for "Sequence" do
describe "#values" do
subject { super().values }
- it { should have(6).items }
- it { should all_be_between(0,0xFFFFFFFF) }
+ it 'has 6 items' do
+ expect(subject.size).to eq(6)
+ end
+ it { is_expected.to all(be_between(0,0xFFFFFFFF)) }
end
end