Sha256: b1badf20bb30c6116ee76ee7efd456c90bd1606f5a7fb467cdb13d65dfce1a94
Contents?: true
Size: 471 Bytes
Versions: 56
Compression:
Stored size: 471 Bytes
Contents
require 'test_helper' class RailsOps::Operation::Model::UpdateTest < ActiveSupport::TestCase include TestHelper BASIC_OP = Class.new(RailsOps::Operation::Model::Update) do model Group end def test_basic g = Group.create op = BASIC_OP.new(id: g.id) assert_equal g.id, op.model.id assert op.model.class < Group end def test_parent_op g = Group.create op = BASIC_OP.new(id: g.id) assert_equal op, op.model.parent_op end end
Version data entries
56 entries across 56 versions & 1 rubygems