Sha256: 45e4bde6babf36ad3f7e5363c097ba491b4bbe31bc9fcb568f6bec1b75ac6d36

Contents?: true

Size: 419 Bytes

Versions: 7

Compression:

Stored size: 419 Bytes

Contents

require File.dirname(__FILE__) + '/../test_helper'

class InviteTest < ActiveSupport::TestCase
  
  context "Invite" do
    setup do
      @user = Factory(:user)
      @invitee = Factory(:invitee)
      @invite = Invite.create(:inviter => @user, :invitee => @invitee, :user => @user)
    end

    subject { @invite }

    should_belong_to :user
    should_belong_to :inviter
    should_belong_to :invitee
    
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
muck-invites-0.1.12 test/rails_root/test/unit/invite_test.rb
muck-invites-0.1.11 test/rails_root/test/unit/invite_test.rb
muck-invites-0.1.10 test/rails_root/test/unit/invite_test.rb
muck-invites-0.1.7 test/rails_root/test/unit/invite_test.rb
muck-invites-0.1.6 test/rails_root/test/unit/invite_test.rb
muck-invites-0.1.5 test/rails_root/test/unit/invite_test.rb
muck-invites-0.1.4 test/rails_root/test/unit/invite_test.rb