test/experiment_test.rb in verdict-0.3.2 vs test/experiment_test.rb in verdict-0.4.0

- old
+ new

@@ -276,32 +276,32 @@ def test_initial_started_at e = Verdict::Experiment.new('test') do groups { group :all, 100 } end - e.subject_storage.expects(:retrieve_start_timestamp).returns(nil) - e.subject_storage.expects(:store_start_timestamp).once + e.storage.expects(:retrieve_start_timestamp).returns(nil) + e.storage.expects(:store_start_timestamp).once e.send(:ensure_experiment_has_started) end def test_subsequent_started_at_when_start_time_is_memoized e = Verdict::Experiment.new('test') do groups { group :all, 100 } end e.send(:ensure_experiment_has_started) - e.subject_storage.expects(:retrieve_start_timestamp).never - e.subject_storage.expects(:store_start_timestamp).never + e.storage.expects(:retrieve_start_timestamp).never + e.storage.expects(:store_start_timestamp).never e.send(:ensure_experiment_has_started) end def test_subsequent_started_at_when_start_time_is_not_memoized e = Verdict::Experiment.new('test') do groups { group :all, 100 } end - e.subject_storage.expects(:retrieve_start_timestamp).returns(Time.now.utc) - e.subject_storage.expects(:store_start_timestamp).never + e.storage.expects(:retrieve_start_timestamp).returns(Time.now.utc) + e.storage.expects(:store_start_timestamp).never e.send(:ensure_experiment_has_started) end def test_qualify_based_on_experiment_start_timestamp Timecop.freeze(Time.new(2012)) do