Skip to content

Commit 2ead5cc

Browse files
committed
Fix spec
1 parent 9f3a646 commit 2ead5cc

File tree

2 files changed

+24
-24
lines changed

2 files changed

+24
-24
lines changed

spec/v3/services/preferences/for_organization_spec.rb

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,17 @@
4646
"@representation" => "standard",
4747
"preferences" => [
4848
{
49-
"@type" => "preference",
50-
"@href" => "/v3/org/#{organization.id}/preference/private_insights_visibility",
51-
"@representation" => "standard",
52-
"name" => "private_insights_visibility",
53-
"value" => "admins"
54-
}, {
5549
"@type" => "preference",
5650
"@href" => "/v3/org/#{organization.id}/preference/consume_oss_credits",
5751
"@representation" => "standard",
5852
"name" => "consume_oss_credits",
5953
"value" => true
54+
}, {
55+
"@type" => "preference",
56+
"@href" => "/v3/org/#{organization.id}/preference/private_insights_visibility",
57+
"@representation" => "standard",
58+
"name" => "private_insights_visibility",
59+
"value" => "admins"
6060
}
6161
]
6262
)
@@ -76,17 +76,17 @@
7676
"@representation" => "standard",
7777
"preferences" => [
7878
{
79-
"@type" => "preference",
80-
"@href" => "/v3/org/#{organization.id}/preference/private_insights_visibility",
81-
"@representation" => "standard",
82-
"name" => "private_insights_visibility",
83-
"value" => "members"
84-
}, {
8579
"@type" => "preference",
8680
"@href" => "/v3/org/#{organization.id}/preference/consume_oss_credits",
8781
"@representation" => "standard",
8882
"name" => "consume_oss_credits",
8983
"value" => false
84+
}, {
85+
"@type" => "preference",
86+
"@href" => "/v3/org/#{organization.id}/preference/private_insights_visibility",
87+
"@representation" => "standard",
88+
"name" => "private_insights_visibility",
89+
"value" => "members"
9090
}
9191
]
9292
)

spec/v3/services/preferences/for_user_spec.rb

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,18 @@
2626
"@representation" => "standard",
2727
"name" => "build_emails",
2828
"value" => true
29-
}, {
30-
"@type" => "preference",
31-
"@href" => "/v3/preference/private_insights_visibility",
32-
"@representation" => "standard",
33-
"name" => "private_insights_visibility",
34-
"value" => "private"
3529
}, {
3630
"@type" => "preference",
3731
"@href" => "/v3/preference/consume_oss_credits",
3832
"@representation" => "standard",
3933
"name" => "consume_oss_credits",
4034
"value" => true
35+
}, {
36+
"@type" => "preference",
37+
"@href" => "/v3/preference/private_insights_visibility",
38+
"@representation" => "standard",
39+
"name" => "private_insights_visibility",
40+
"value" => "private"
4141
}
4242
]
4343
)
@@ -66,18 +66,18 @@
6666
"@representation" => "standard",
6767
"name" => "build_emails",
6868
"value" => false
69-
}, {
70-
"@type" => "preference",
71-
"@href" => "/v3/preference/private_insights_visibility",
72-
"@representation" => "standard",
73-
"name" => "private_insights_visibility",
74-
"value" => "public"
7569
}, {
7670
"@type" => "preference",
7771
"@href" => "/v3/preference/consume_oss_credits",
7872
"@representation" => "standard",
7973
"name" => "consume_oss_credits",
8074
"value" => false
75+
}, {
76+
"@type" => "preference",
77+
"@href" => "/v3/preference/private_insights_visibility",
78+
"@representation" => "standard",
79+
"name" => "private_insights_visibility",
80+
"value" => "public"
8181
}
8282
]
8383
)

0 commit comments

Comments
 (0)