spec/spec_helper.rb in freeform-1.0.11 vs spec/spec_helper.rb in freeform-2.0.0
- old
+ new
@@ -20,5 +20,11 @@
Capybara.javascript_driver = :selenium
RSpec.configure do |config|
config.mock_with :rspec
end
+
+RSpec::Matchers.define :exist_in_database do
+ match do |actual|
+ actual.class.exists?(actual.id)
+ end
+end
\ No newline at end of file