Created
August 12, 2008 14:06
-
-
Save luigi/5045 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe "Sending Membership Invites" do | |
before :each do | |
user = mock_model(User) | |
group = mock_model(Group, :user => user, :name => "What's up holmes?") | |
invitee = mock_model(User) | |
membership = mock_model(Membership, :user => invitee, :group => group) | |
@message = Message.create_for_membership_invitation(membership) | |
end | |
it "should successfully create a membership invite" do | |
@message.should be_valid | |
end | |
it "should have the correct subject" do | |
@message.subject.should eql("You have been invited to join the group 'What's up holmes?'") | |
end | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment