spec/spec_helper.rb in with_model-1.1.0 vs spec/spec_helper.rb in with_model-1.2.0

- old
+ new

@@ -42,10 +42,10 @@ module SpecHelper module RailsTestCompatability if ::ActiveRecord::VERSION::STRING >= '4.1.0' require 'minitest' include Minitest::Assertions - def assertions; @assertions || 0; end + def assertions; @assertions ||= 0; end def assertions= value; @assertions = value; end else require 'test/unit/assertions' include Test::Unit::Assertions end