test/test_client.rb in prefab-cloud-ruby-1.7.0 vs test/test_client.rb in prefab-cloud-ruby-1.7.1
- old
+ new
@@ -409,9 +409,25 @@
# nothing is summarized for log levels
assert_summary client, {}
end
+ def test_defined
+ client = new_client
+
+ refute client.defined?('does_not_exist')
+ assert client.defined?('sample_int')
+ assert client.defined?('disabled_flag')
+ end
+
+ def test_is_ff
+ client = new_client
+
+ assert client.is_ff?('flag_with_a_value')
+ refute client.is_ff?('sample_int')
+ refute client.is_ff?('does_not_exist')
+ end
+
private
def basic_value_config
PrefabProto::Config.new(
id: 123,