Sha256: a7722fb372add1a512ebd31214e8ecdc9c624a44a5baa229e29aa325d1692eac

Contents?: true

Size: 508 Bytes

Versions: 6

Compression:

Stored size: 508 Bytes

Contents

require 'spec_helper'

describe Split::Configuration do
  it "should provide default values" do
    config = Split::Configuration.new

    config.ignore_ip_addresses.should eql([])
    config.robot_regex.should eql(/\b(Baidu|Gigabot|Googlebot|libwww-perl|lwp-trivial|msnbot|SiteUptime|Slurp|WordPress|ZIBB|ZyBorg)\b/i)
    config.db_failover.should be_false
    config.db_failover_on_db_error.should be_a Proc
    config.allow_multiple_experiments.should be_false
    config.enabled.should be_true
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
split-0.4.6 spec/configuration_spec.rb
split-0.4.5 spec/configuration_spec.rb
split-0.4.4 spec/configuration_spec.rb
split-0.4.3 spec/configuration_spec.rb
split-0.4.2 spec/configuration_spec.rb
split-0.4.1 spec/configuration_spec.rb