Sha256: 3b7b1be649ea742c4a3d07322e960cbd15e3aaaf819c1a23d4fe06c50e3f1184

Contents?: true

Size: 574 Bytes

Versions: 2

Compression:

Stored size: 574 Bytes

Contents

require 'spec_helper'

describe InvisibleCaptcha do
  it 'initialize with defaults' do
    InvisibleCaptcha.init!

    expect(InvisibleCaptcha.sentence_for_humans).to eq('If you are a human, ignore this field')
    expect(InvisibleCaptcha.error_message).to eq('You are a robot!')
    expect(InvisibleCaptcha.honeypots).to eq(['foo_id', 'bar_id', 'baz_id'])
  end

  it 'allow setup via block' do
    InvisibleCaptcha.setup do |ic|
      ic.sentence_for_humans = 'Another sentence'
    end

    expect(InvisibleCaptcha.sentence_for_humans).to eq('Another sentence')
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
invisible_captcha-0.8.0 spec/invisible_captcha_spec.rb
invisible_captcha-0.7.0 spec/invisible_captcha_spec.rb