We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c7621e commit 19cc35aCopy full SHA for 19cc35a
1 file changed
spec/models/message.rb
@@ -0,0 +1,19 @@
1
+require 'spec_helper'
2
+
3
+describe Message do
4
+ subject {Fabricate.build(:message)}
5
6
+ describe '#to_param' do
7
+ it 'has the email attribute' do
8
+ subject.to_param[:email].should == subject.email
9
+ end
10
11
+ it'has the subject attribute' do
12
+ subject.to_param[:subject].should == subject.subject
13
14
15
+ it 'has the body attribute' do
16
+ subject.to_param[:body].should == subject.body
17
18
19
+end
0 commit comments