Skip to content

Instantly share code, notes, and snippets.

@raysrashmi
Created May 13, 2014 12:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raysrashmi/42ac5a0441b74269b07b to your computer and use it in GitHub Desktop.
Save raysrashmi/42ac5a0441b74269b07b to your computer and use it in GitHub Desktop.
require 'spec_helper'
describe MessageNotification do
it_behaves_like 'notification' do
let(:subject) { create(:message) }
let(:message) { subject }
let(:project) { message.project }
let(:notification) { MessageNotification.new(message) }
let(:text) { %{#{message.creator.name} posted a message "#{message.subject}" #{Rails.application.routes.url_helpers.account_project_message_url(project.account, project, message)}} }
let(:activity_text) { I18n.t('activity.message_create') }
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment