spec/support/shared/examples/search/query.rb in metasploit-model-0.30.2-java vs spec/support/shared/examples/search/query.rb in metasploit-model-1.0.0.pre.rails.pre.4.0

- old
+ new

@@ -1,6 +1,6 @@ -RSpec.shared_examples_for 'search query' do |options={}| +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 { is_expected.not_to be_nil } - it { is_expected.to be_valid } + it { should_not be_nil } + it { should be_valid } end end end end \ No newline at end of file