moves Sms model to Verification namespace
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
require 'rails_helper'
|
||||
|
||||
describe Sms do
|
||||
describe Verification::Sms do
|
||||
it "should be valid" do
|
||||
sms = build(:sms)
|
||||
sms = build(:verification_sms)
|
||||
expect(sms).to be_valid
|
||||
end
|
||||
|
||||
it "should validate uniqness of phone" do
|
||||
user = create(:user, confirmed_phone: "699999999")
|
||||
sms = Sms.new(phone: "699999999")
|
||||
sms = Verification::Sms.new(phone: "699999999")
|
||||
expect(sms).to_not be_valid
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user