Sha256: ee3fcdd6c3e4d4441eaabfafcd80da3bf1b9922f9b86ba13837ed3b69891e1ea

Contents?: true

Size: 596 Bytes

Versions: 2

Compression:

Stored size: 596 Bytes

Contents

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
restpack_user_service-0.0.3 spec/models/user_spec.rb
restpack_user_service-0.0.2 spec/models/user_spec.rb