require 'spec_helper'

describe TaskUser do
  before(:each) do
    @valid_attributes = {
      :user_id => 1,
      :task_id => 1,
      :unread => false,
    }
  end

  it "should create a new instance given valid attributes" do
    TaskUser.create!(@valid_attributes)
  end
end

# == Schema Information
#
# Table name: task_users
#
#  id         :integer(4)      not null, primary key
#  user_id    :integer(4)
#  task_id    :integer(4)
#  type       :string(255)     default("TaskOwner")
#  unread     :boolean(1)
#  created_at :datetime
#  updated_at :datetime
#


require 'spec_helper'

describe TaskUser do
  before(:each) do
    @valid_attributes = {
      :user => User.make,
      :task => Task.make,
      :unread => false
    }
  end

  it "should create a new instance given valid attributes" do
    TaskUser.create!(@valid_attributes)
  end
end

# == Schema Information
#
# Table name: task_users
#
#  id         :integer(4)      not null, primary key
#  user_id    :integer(4)
#  task_id    :integer(4)
#  type       :string(255)     default("TaskOwner")
#  unread     :boolean(1)
#  created_at :datetime
#  updated_at :datetime
#


Update specs: use factory instead of magic numbers in TaskUser spec.
Update specs: use factory instead of magic numbers in TaskUser spec.
