Sha256: 8fdc825bd7f8d0a5a355436183c3b5980a4d107eac4187d88a8b6e578d3a30e1
Contents?: true
Size: 449 Bytes
Versions: 7
Compression:
Stored size: 449 Bytes
Contents
require "helper" # Can't use describe because there is no spec type to use class TestActiveSupportExpectations < ActiveSupport::TestCase def test_must_change counter = 0 lambda { counter += 1 }.must_change "counter", +1 lambda { counter += 3 }.must_change "counter", +3 lambda { counter -= 1 }.must_change "counter", -1 end def test_wont_change counter = 0 lambda { counter = 0 }.wont_change "counter" end end
Version data entries
7 entries across 7 versions & 1 rubygems