spec/event_spec.rb in td-logger-0.3.6 vs spec/event_spec.rb in td-logger-0.3.7

- old
+ new

@@ -6,10 +6,12 @@ let(:test_logger) do Fluent::Logger::TestLogger.new end before(:each) do t = test_logger - TreasureData::Logger.class_variable_set(:@@logger, t) + TreasureData::Logger.module_eval do + class_variable_set(:@@logger, t) + end TD.event.attribute.clear end it 'action' do test_logger.should_receive(:post).with(:doit, {:action=>"doit", :foo=>:bar, :uid=>"uid1"}).twice