spec/support/shared/examples/search/query.rb in metasploit-model-0.30.0-java vs spec/support/shared/examples/search/query.rb in metasploit-model-0.30.1.pre.rspec.pre.3.pre.1

- old
+ new

@@ -1,6 +1,6 @@ -shared_examples_for 'search query' do |options={}| +RSpec.shared_examples_for 'search query' do |options={}| options.assert_valid_keys(:formatted_operator) formatted_operator = options.fetch(:formatted_operator) context "with #{formatted_operator}" do @@ -33,11 +33,11 @@ operations.find { |operation| operation.operator.name == formatted_operator.to_sym } end - it { should_not be_nil } - it { should be_valid } + it { is_expected.not_to be_nil } + it { is_expected.to be_valid } end end end end \ No newline at end of file