Sha256: 253368430c59baf49cbacac2cdcfee3cf8821730446665a77739ebefe8324eef
Contents?: true
Size: 445 Bytes
Versions: 4
Compression:
Stored size: 445 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 value { counter += 1 }.must_change "counter", +1 value { counter += 3 }.must_change "counter", +3 value { counter -= 1 }.must_change "counter", -1 end def test_wont_change counter = 0 value { counter = 0 }.wont_change "counter" end end
Version data entries
4 entries across 4 versions & 1 rubygems