Sha256: 88474416a4106263ff8cdfc201854c86d9a525cba410e2615c6988e3529ca844
Contents?: true
Size: 364 Bytes
Versions: 1
Compression:
Stored size: 364 Bytes
Contents
require 'spec_helper' describe InvisibleCaptcha::InvisibleCaptchaValidator do it 'do not pass validations if honeypot is presented' do topic = Topic.new(title: 'foo') expect(topic.valid?).to be true topic.subtitle = 'foo' expect(topic.valid?).to be false expect(topic.errors.messages[:base]).to eq [InvisibleCaptcha.error_message] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
invisible_captcha-0.8.0 | spec/validator_spec.rb |