Sha256: 151b32047c45dbeaa33cd30fde5781b1e3555e0797a4b96265e6fa78633bd849
Contents?: true
Size: 1.23 KB
Versions: 1
Compression:
Stored size: 1.23 KB
Contents
require 'test_helper' module Commontator describe CommentsHelper do before do setup_helper_spec end it 'must make proper timestamps' do editor_name = @user.commontator_config.user_name_proc.call(@user) created_timestamp(@comment).must_equal t('commontator.comment.status.created_at', :created_at => l(@comment.created_at, :format => :commontator)) updated_timestamp(@comment).must_equal '' @comment.body = 'Something else' @comment.editor = @user @comment.save! created_timestamp(@comment).must_equal t('commontator.comment.status.created_at', :created_at => l(@comment.created_at, :format => :commontator)) updated_timestamp(@comment).must_equal t('commontator.comment.status.updated_at', :editor_name => editor_name, :updated_at => l(@comment.updated_at, :format => :commontator)) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
commontator-4.3.0 | spec/app/helpers/commontator/comments_helper_spec.rb |