You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Returns variation where visitor will be bucketed (nil if the user is not bucketed into any of the experiments on the feature)
100
+
# Returns hash with the experiment and variation where visitor will be bucketed (nil if the user is not bucketed into any of the experiments on the feature)
101
101
102
102
# check if the feature is being experiment on and whether the user is bucketed into the experiment
expect(spy_logger).tohave_received(:log).once.with(Logger::DEBUG,"The user 'test_user' is not being experimented on in feature 'boolean_single_variable_feature'.")
699
+
expect(spy_logger).tohave_received(:log).once.with(Logger::INFO,"Feature 'boolean_single_variable_feature' is enabled for user 'test_user'.")
700
+
end
701
+
702
+
it'should return true and send an impression if the user is bucketed into a feature experiment'do
expect(spy_logger).tohave_received(:log).once.with(Logger::INFO,"Dispatching impression event to URL https://logx.optimizely.com/log/decision with params #{expected_params}.")
731
+
expect(spy_logger).tohave_received(:log).once.with(Logger::INFO,"Feature 'multi_variate_feature' is enabled for user 'test_user'.")
0 commit comments