Sha256: 6d840bf0fe6043a30fcde83d94522194ce0b0284192b19f72c07ff505d8f8013

Contents?: true

Size: 349 Bytes

Versions: 10

Compression:

Stored size: 349 Bytes

Contents

require 'test_helper'

module Spyke
  class ActiveModelDirtyTest < MiniTest::Test
    def test_attributes_instance_var_compatibility
      recipe = RecipeWithDirty.new(title: 'Cheeseburger')

      # If @attributes is set on recipe ActiveModel::Dirty will crash
      assert_equal false, recipe.attribute_changed_in_place?(:title)
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
spyke-6.1.2 test/activemodel_dirty_test.rb
spyke-6.1.1 test/activemodel_dirty_test.rb
spyke-6.1.0 test/activemodel_dirty_test.rb
spyke-6.0.0 test/activemodel_dirty_test.rb
spyke-5.4.3 test/activemodel_dirty_test.rb
spyke-5.4.2 test/activemodel_dirty_test.rb
spyke-5.4.1 test/activemodel_dirty_test.rb
spyke-5.4.0 test/activemodel_dirty_test.rb
spyke-5.3.4 test/activemodel_dirty_test.rb
spyke-5.3.3 test/activemodel_dirty_test.rb