Sha256: 3a9466280f718ec6ad0c70558305038f6c613da037f0957407c2cb150817f663
Contents?: true
Size: 460 Bytes
Versions: 4
Compression:
Stored size: 460 Bytes
Contents
require 'test_helper' class ApplyChangesTest < MiniTest::Unit::TestCase def setup @aggregate = OpenStruct.new( raw_attributes: {}, traversable_associations: {}, untraversable_association_names: [], ) end def test_raises_aggregate_mismatch_error_if_attributes_are_invalid assert_raises(ActiveShepherd::AggregateMismatchError) do ActiveShepherd::Methods::ApplyChanges.new(@aggregate, { foo: 'bar' }) end end end
Version data entries
4 entries across 4 versions & 1 rubygems