Sha256: f5dd9f34f93fdf7a24177fd81f9c7056fdecf5b1c04e8d9a58da10f018c0330f
Contents?: true
Size: 534 Bytes
Versions: 3
Compression:
Stored size: 534 Bytes
Contents
require 'spec_helper' describe ActiveRecord::Turntable::ActiveRecordExt::Sequencer do before(:all) do reload_turntable!(File.join(File.dirname(__FILE__), "../../../config/turntable.yml")) end before(:each) do establish_connection_to(:test) truncate_shard end context "With sequencer enabled model" do subject { User } its(:sequence_name) { is_expected.to_not be_nil } end context "With sequencer disabled model" do subject { Card } its(:sequence_name) { is_expected.to be_nil } end end
Version data entries
3 entries across 3 versions & 1 rubygems