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

Version Path
rails_ops-1.0.17.1 test/unit/rails_ops/operation/model/update_test.rb
rails_ops-1.1.24 test/unit/rails_ops/operation/model/update_test.rb
rails_ops-1.1.23 test/unit/rails_ops/operation/model/update_test.rb
rails_ops-1.1.22 test/unit/rails_ops/operation/model/update_test.rb
rails_ops-1.1.21 test/unit/rails_ops/operation/model/update_test.rb
rails_ops-1.1.20 test/unit/rails_ops/operation/model/update_test.rb
rails_ops-1.1.19 test/unit/rails_ops/operation/model/update_test.rb
rails_ops-1.1.18 test/unit/rails_ops/operation/model/update_test.rb
rails_ops-1.1.17 test/unit/rails_ops/operation/model/update_test.rb
rails_ops-1.1.16 test/unit/rails_ops/operation/model/update_test.rb
rails_ops-1.1.15 test/unit/rails_ops/operation/model/update_test.rb
rails_ops-1.1.14 test/unit/rails_ops/operation/model/update_test.rb
rails_ops-1.1.13 test/unit/rails_ops/operation/model/update_test.rb
rails_ops-1.1.12 test/unit/rails_ops/operation/model/update_test.rb
rails_ops-1.1.11 test/unit/rails_ops/operation/model/update_test.rb
rails_ops-1.1.10 test/unit/rails_ops/operation/model/update_test.rb
rails_ops-1.1.9 test/unit/rails_ops/operation/model/update_test.rb
rails_ops-1.1.8 test/unit/rails_ops/operation/model/update_test.rb
rails_ops-1.1.7 test/unit/rails_ops/operation/model/update_test.rb
rails_ops-1.1.6 test/unit/rails_ops/operation/model/update_test.rb