Sha256: bff4d24cf30531528f33a018746d6c0d787c89a4fe6eb00caf012a56c6e75b53

Contents?: true

Size: 389 Bytes

Versions: 3

Compression:

Stored size: 389 Bytes

Contents

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

class UserTest < ActiveSupport::TestCase

  context "A class that is inviteable" do
    setup do
      @user = Factory(:user)
      email = Factory.next(:email)
      @invite = @user.invites.build(:email => email)
      @user.save!
    end
    
    should "have invites" do
      assert_equal 1, @user.invites.length
    end
   end 

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
muck-invites-0.1.3 test/rails_root/test/unit/user_test.rb
muck-invites-0.1.2 test/rails_root/test/unit/user_test.rb
muck-invites-0.1.1 test/rails_root/test/unit/user_test.rb