From 55e304e109d7240b6e4a3976cd1e8abd9d774d18 Mon Sep 17 00:00:00 2001 From: Seth Call Date: Tue, 22 Jul 2014 14:46:26 -0500 Subject: [PATCH] * try to fix millisecond sensitivity in rspec matcher --- ruby/spec/jam_ruby/models/score_history_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ruby/spec/jam_ruby/models/score_history_spec.rb b/ruby/spec/jam_ruby/models/score_history_spec.rb index 8c1f83cb1..aa07ac196 100644 --- a/ruby/spec/jam_ruby/models/score_history_spec.rb +++ b/ruby/spec/jam_ruby/models/score_history_spec.rb @@ -10,7 +10,7 @@ describe ScoreHistory do original.should_not == scanned_until num_affected.should == 0 ScoreHistory.count.should == 0 - GenericState.singleton.score_history_last_imported_at.should == scanned_until + GenericState.singleton.score_history_last_imported_at.round.should == scanned_until.round end it "migrates a single score" do @@ -28,7 +28,7 @@ describe ScoreHistory do num_affected, scanned_until = ScoreHistory.migrate_scores ScoreHistory.count.should == 1 num_affected.should == 1 - GenericState.singleton.score_history_last_imported_at.should == scanned_until + GenericState.singleton.score_history_last_imported_at.round.should == scanned_until.round score_history = ScoreHistory.first score_history.from_client_id.should == score1.anodeid