spec/cpe_examples.rb in ruby-nmap-0.7.0 vs spec/cpe_examples.rb in ruby-nmap-0.8.0
- old
+ new
@@ -1,11 +1,11 @@
require 'rspec'
shared_examples_for "CPE" do
subject { super().cpe }
- it { should_not be_empty }
+ it { is_expected.not_to be_empty }
it "should contain CPE URLs" do
- subject.should all_be_kind_of(CPE::URL)
+ expect(subject).to all(be_kind_of(CPE::URL))
end
end