Sha256: 6d139fbff5023b7490a09a5ff58dea04ecca2da542a82b6b819ba4b0750984b8
Contents?: true
Size: 487 Bytes
Versions: 6
Compression:
Stored size: 487 Bytes
Contents
require "spec_helper" describe Octopus::LogSubscriber, :shards => [:canada] do before :each do @out = StringIO.new @log = Logger.new(@out) ActiveRecord::Base.logger = @log ActiveRecord::Base.logger.level = Logger::DEBUG end after :each do ActiveRecord::Base.logger = nil end it "should add to the default logger the shard name the query was sent to" do User.using(:canada).create!(:name => "test") @out.string.should =~ /Shard: canada/ end end
Version data entries
6 entries across 6 versions & 1 rubygems