Skip to content

Commit

Permalink
Merge fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
burke committed Nov 12, 2012
1 parent 0e8c11e commit 535c9c3
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions Gemfile
Expand Up @@ -2,5 +2,6 @@ source "http://rubygems.org"

gem 'rspec', '2.11.0'
gem 'rails', '~> 3.0.17'
gem 'speedytime'
gem 'mysql2'
gemspec
2 changes: 2 additions & 0 deletions lib/multi_db/lag_monitor.rb
@@ -1,3 +1,5 @@
require 'speedytime'

module MultiDb
module LagMonitor

Expand Down
2 changes: 2 additions & 0 deletions lib/multi_db/query_analyzer.rb
@@ -1,3 +1,5 @@
require 'speedytime'

module MultiDb
module QueryAnalyzer

Expand Down
1 change: 1 addition & 0 deletions lib/multi_db/scheduler.rb
@@ -1,4 +1,5 @@
require 'tlattr_accessors'
require 'speedytime'
require 'active_support/core_ext/module/delegation'

module MultiDb
Expand Down
3 changes: 1 addition & 2 deletions spec/query_analyzer_spec.rb
Expand Up @@ -38,8 +38,7 @@ def self.q(sql, *tables)
CURRENT_TIME = 1000

before do
now = mock(to_i: CURRENT_TIME)
Time.stub(now: now)
Speedytime.stub(current: CURRENT_TIME)
end

it "doesn't require sticky on a fresh read" do
Expand Down

0 comments on commit 535c9c3

Please sign in to comment.