spec/support/shared/examples/search_attribute.rb in metasploit-model-0.30.2-java vs spec/support/shared/examples/search_attribute.rb in metasploit-model-1.0.0.pre.rails.pre.4.0
- old
+ new
@@ -1,6 +1,6 @@
-RSpec.shared_examples_for 'search_attribute' do |name, options={}|
+shared_examples_for 'search_attribute' do |name, options={}|
options.assert_valid_keys(:type)
type = options.fetch(:type)
it_should_behave_like 'search_with',
Metasploit::Model::Search::Operator::Attribute,
@@ -17,11 +17,11 @@
context attribute_set_method_name do
subject(attribute_set_method_name) do
base_class.send(attribute_set_method_name)
end
- it { is_expected.to be_a Set }
- it { is_expected.not_to be_empty }
+ it { should be_a Set }
+ it { should_not be_empty }
end
end
end
end
\ No newline at end of file