Sha256: 9b6d27fe1d6aa7c31ff5f7d700238f666a153a7ce6e3d7c0df71b2023345188a

Contents?: true

Size: 481 Bytes

Versions: 2

Compression:

Stored size: 481 Bytes

Contents

require 'test_helper'

class MuteUpdatedAtTest < ActiveSupport::TestCase
  test "truth" do
    assert_kind_of Module, MuteUpdatedAt
  end

  test "should save post" do
    post = Post.new({ :title => "abc" })
    assert post.save
  end

  test "do not updated_at" do
    post = Post.new({ :title => "abc" })
    assert post.save
    assert_equal post.created_at, post.updated_at
    post.update_attribute(:title, "xyz")
    assert_equal post.created_at, post.updated_at
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mute_updated_at-0.0.2 test/mute_updated_at_test.rb
mute_updated_at-0.0.1 test/mute_updated_at_test.rb