fluidfeatures-rails 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -41,11 +41,11 @@ describe HomeController do
|
|
41
41
|
JsonSpec.exclude_keys("duration")
|
42
42
|
features_hit_request.body.should be_json_eql(%({
|
43
43
|
"features": {
|
44
|
-
"hit":
|
45
|
-
"apples"
|
46
|
-
|
47
|
-
|
48
|
-
|
44
|
+
"hit": {
|
45
|
+
"apples": {
|
46
|
+
"1": {}
|
47
|
+
}
|
48
|
+
},
|
49
49
|
"unknown": {
|
50
50
|
// features that we have not seen before
|
51
51
|
"apples": {
|
@@ -92,11 +92,14 @@ describe HomeController do
|
|
92
92
|
JsonSpec.exclude_keys("duration")
|
93
93
|
features_hit_request.body.should be_json_eql(%({
|
94
94
|
"features": {
|
95
|
-
"hit":
|
96
|
-
"
|
97
|
-
|
98
|
-
|
99
|
-
|
95
|
+
"hit": {
|
96
|
+
"oranges": {
|
97
|
+
"1": {}
|
98
|
+
},
|
99
|
+
"lemons": {
|
100
|
+
"1": {}
|
101
|
+
}
|
102
|
+
},
|
100
103
|
"unknown": {
|
101
104
|
// no unknown features
|
102
105
|
}
|