lib/paranoia/rspec.rb in paranoia-2.5.2 vs lib/paranoia/rspec.rb in paranoia-2.5.3

- old
+ new

@@ -1,6 +1,6 @@ -if Rails.env.test? +if defined?(RSpec) require 'rspec/expectations' # Validate the subject's class did call "acts_as_paranoid" RSpec::Matchers.define :act_as_paranoid do match { |subject| subject.class.ancestors.include?(Paranoia) } @@ -21,6 +21,6 @@ failure_message_for_should(&failure_message_proc) failure_message_for_should_not(&failure_message_when_negated_proc) end end -end \ No newline at end of file +end