Velocipede's User, Sales, and Bike Inventory Web App
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

29 lines
666 B

require 'spec_helper'
describe User do
describe 'validations' do
it { should have(1).error_on(:first_name) }
it { should have(1).error_on(:last_name) }
end
# describe 'is a member of team' do
# let(:user) { create(:user) }
# let(:team) { create(:team) }
# subject { user.is_a_member_of?(team) }
# context 'it not a member of the team' do
# it { should be_false }
# end
# context 'is a member of the team already' do
# before { user.teams << team }
# it { should be_true }
# end
# context 'is the captain of the team' do
# let(:team) { create(:team, :captain => user) }
# it { should be_true }
# end
# end
end