require 'spec_helper' describe RestPack::User::Service::Models::User do it { should validate_presence_of(:application_id) } it { should ensure_length_of(:name).is_at_most(128) } it { should ensure_length_of(:nickname).is_at_most(128) } it { should ensure_length_of(:email).is_at_most(512) } it { should ensure_length_of(:image).is_at_most(1024) } it { should ensure_length_of(:location).is_at_most(512) } it { should ensure_length_of(:description).is_at_most(1024) } it { subject.class.table_name.should == 'restpack_users' } describe "#authenticate" do pending end end