Sha256: 722272a86511bf30f01fc3ff14e3808623225a41492b845e84266e082f65fd05

Contents?: true

Size: 319 Bytes

Versions: 4

Compression:

Stored size: 319 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({}, recipe.changes)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spyke-7.1.1 test/activemodel_dirty_test.rb
spyke-7.1.0 test/activemodel_dirty_test.rb
spyke-7.0.0 test/activemodel_dirty_test.rb
spyke-6.1.3 test/activemodel_dirty_test.rb