サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
災害への備え
matchers.shoulda.io
describe User do it 'is not valid if its username is the same as another user within the same account' do _existing_user = FactoryBot.create(:user, username: 'johnsmith', account_id: 1 ) user = FactoryBot.build(:user, username: 'johnsmith', account_id: 1 ) expect(user).not_to be_valid end it 'is valid if its username is the same as another user within the same account, but for different case' do _
このページを最初にブックマークしてみませんか?
『Shoulda Matchers』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く