Skip to content

Commit c345c8e

Browse files
committed
Fix tests
1 parent 6ed7c85 commit c345c8e

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

spec/v3/services/installation/find_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
"id" => 1,
4848
"login" => user.login,
4949
"name" => user.name,
50+
"email" => "[email protected]",
5051
"github_id" => nil,
5152
"vcs_id" => user.vcs_id,
5253
"vcs_type" => user.vcs_type,

spec/v3/services/owner/find_spec.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@
235235
end
236236

237237
describe "user" do
238-
let(:user) { Travis::API::V3::Models::User.new(login: 'example-user', github_id: 5678) }
238+
let(:user) { Travis::API::V3::Models::User.new(login: 'example-user', github_id: 5678, email: '[email protected]') }
239239
before { user.save! }
240240
after { user.delete }
241241

@@ -250,6 +250,7 @@
250250
"id" => user.id,
251251
"login" => "example-user",
252252
"name" => nil,
253+
"email" => "[email protected]",
253254
"github_id" => 5678,
254255
"vcs_id" => user.vcs_id,
255256
"vcs_type" => user.vcs_type,
@@ -274,6 +275,7 @@
274275
"id" => user.id,
275276
"login" => "example-user",
276277
"name" => nil,
278+
"email" => "[email protected]",
277279
"github_id" => 5678,
278280
"vcs_id" => user.vcs_id,
279281
"vcs_type" => user.vcs_type,
@@ -298,6 +300,7 @@
298300
"id" => user.id,
299301
"login" => "example-user",
300302
"name" => nil,
303+
"email" => "[email protected]",
301304
"github_id" => 5678,
302305
"vcs_id" => user.vcs_id,
303306
"vcs_type" => user.vcs_type,
@@ -326,6 +329,7 @@
326329
"id" => user.id,
327330
"login" => "example-user",
328331
"name" => nil,
332+
"email" => nil,
329333
"github_id" => 5678,
330334
"vcs_id" => user.vcs_id,
331335
"vcs_type" => user.vcs_type,

spec/v3/services/user/current_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"@permissions" => {"read"=>true, "sync"=>true},
1515
"id" => user.id,
1616
"login" => "svenfuchs",
17-
"name" =>"Sven Fuchs",
17+
"name" => "Sven Fuchs",
18+
"email" => "[email protected]",
1819
"github_id" => user.github_id,
1920
"vcs_id" => user.vcs_id,
2021
"vcs_type" => user.vcs_type,

spec/v3/services/user/find_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
"@permissions" => {"read"=>true, "sync"=>true},
2020
"id" => user.id,
2121
"login" => "svenfuchs",
22-
"name" =>"Sven Fuchs",
22+
"name" => "Sven Fuchs",
23+
"email" => "[email protected]",
2324
"github_id" => user.github_id,
2425
"vcs_id" => user.vcs_id,
2526
"vcs_type" => user.vcs_type,

0 commit comments

Comments
 (0)