spec_old/models/user_spec.rb
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
describe User do
before(:each) do
# the commented bits below don't work yet. -cmk
# Department.new(name: "STC")
@user = User.new(name: "Wee Willy", login: "ww")
#stubbing CAS?
# controller.stub!(CASClient::Frameworks::Rails::Filter).and_return(true)
# @user.departments << Department.find_by_name("STC")
# @user.save!
end
it "should have a name" do
@user.name.should == "Wee Willy"
end
it "should have a login" do
@user.login.should == "ww"
end
it "should have a unique login"
it "should have a department"
# @user.departments == "STC"
end