Sha256: 47f66dbdc4b064b7ea4fa7d26a93eb0d7ad7e06805434ce90b73092ebed16114
Contents?: true
Size: 574 Bytes
Versions: 62
Compression:
Stored size: 574 Bytes
Contents
require 'test_helper' module Workarea class ConstantsTest < TestCase class Foo; end class Bar; end teardown { Constants.reset!(:test) } def test_remembers_the_registration Constants.register(:test, Foo) Constants.register(:test, Bar) results = Constants.find(:test) assert_includes(results, Foo) assert_includes(results, Bar) end def test_does_not_duplicate_registration Constants.register(:test, Foo) Constants.register(:test, Foo) assert_equal([Foo], Constants.find(:test)) end end end
Version data entries
62 entries across 62 versions & 1 rubygems