test/storage/redis_storage_test.rb in verdict-0.8.0 vs test/storage/redis_storage_test.rb in verdict-0.9.0

- old
+ new

@@ -45,10 +45,11 @@ assert @redis.hexists(experiment_key, 'assignment_subject_2') returning_assignment = @experiment.assign('subject_2') assert returning_assignment.returning? assert_equal new_assignment.experiment, returning_assignment.experiment - assert_equal new_assignment.group, returning_assignment.group + assert_nil new_assignment.group + assert_nil returning_assignment.group end def test_assign_should_return_unqualified_when_redis_is_unavailable_for_reads @redis.stubs(:hget).raises(::Redis::BaseError, "Redis is down") assert !@experiment.assign('subject_1').qualified?