Sha256: bc8114dd273aca9eb5b21e6fac447b0dfe912d57843863a9c23b877d3b177e8f
Contents?: true
Size: 454 Bytes
Versions: 30
Compression:
Stored size: 454 Bytes
Contents
require 'test_helper' describe Merit::Action do it 'saves correctly with a serialised model' do comment = Comment.new(name: 'the comment name') action = Merit::Action.create(target_model: 'comment', target_id: 2, target_data: comment.to_yaml) comment_yaml = Merit::Action.find(action.id).target_data assert_equal comment.name, YAML::load(comment_yaml).name end end
Version data entries
30 entries across 30 versions & 2 rubygems