spec/spec_helper.rb in couch_potato-1.4.0 vs spec/spec_helper.rb in couch_potato-1.6.3

- old
+ new

@@ -32,11 +32,11 @@ end class BigDecimalContainer include CouchPotato::Persistence - property :number, :type => BigDecimal + property :number, type: BigDecimal end def recreate_db CouchPotato.couchrest_database.recreate! end @@ -51,14 +51,14 @@ RSpec::Matchers.define :eql_ignoring_indentation do |expected| match do |string| strip_indentation(string) == strip_indentation(expected) end - failure_message_for_should do |actual| + failure_message do |actual| "expected\n#{strip_indentation(actual).inspect} to == \n#{strip_indentation(expected).inspect} but wasn't." end - failure_message_for_should_not do |actual| + failure_message_when_negated do |actual| "expected\n#{strip_indentation(actual).inspect} to not == \n#{strip_indentation(expected).inspect} but wasn." end def strip_indentation(string) string.gsub(/^\s+/m, '')