Sha256: 48bcd4aac972b4781e5391bfb14ff53cc66ba9d1bed2c816a29f921db25f0dec

Contents?: true

Size: 481 Bytes

Versions: 5

Compression:

Stored size: 481 Bytes

Contents

require 'spec_helper'

describe ActiveRecord::Turntable::Config do
  before(:all) do
    reload_turntable!(File.join(File.dirname(__FILE__), "../../config/turntable.yml"))
  end

  subject { ActiveRecord::Turntable::Config }

  it "has config hash" do
    subject.instance.instance_variable_get(:@config).should be_an_kind_of(Hash)
  end

  it "has cluster setting" do
    subject[:clusters][:user_cluster].should be_instance_of(ActiveSupport::HashWithIndifferentAccess)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
activerecord-turntable-1.1.2 spec/active_record/turntable/config_spec.rb
activerecord-turntable-1.1.1 spec/active_record/turntable/config_spec.rb
activerecord-turntable-1.1.0 spec/active_record/turntable/config_spec.rb
activerecord-turntable-1.0.1 spec/active_record/turntable/config_spec.rb
activerecord-turntable-1.0.0 spec/active_record/turntable/config_spec.rb