Sha256: 20ce66826cc183120a1b1f901b50ae2330d4d9c288cf546acd93671e80d92f6d
Contents?: true
Size: 700 Bytes
Versions: 4
Compression:
Stored size: 700 Bytes
Contents
describe 'App.Validators.Confirmation', -> beforeEach -> @user = new App.Models.User password: 'secret', passwordConfirmation: 'sexret' afterEach -> App.Env.loco.setLocale 'en' it 'validates format', -> @user.isValid() expect(@user.errors.passwordConfirmation[0]).toEqual "doesn't match Password" it 'supports i18n', -> App.Env.loco.setLocale 'pl' @user.isValid() expect(@user.errors.passwordConfirmation[0]).toEqual "nie zgadza się z polem Hasło" it 'supports custom message', -> dummy = new App.Models.DummyCustomMsg accessPassword: 'secret' dummy.isValid() expect(dummy.errors.accessPasswordConfirmation[0]).toEqual 'different than confirmation'
Version data entries
4 entries across 4 versions & 1 rubygems