Skip to content

Commit

Permalink
Update commits_test.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
kartiki975 committed Jan 23, 2024
1 parent 00a24ef commit 28c5d94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/models/commits_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

module Shipit
class CommitsTest < ActiveSupport::TestCase
Struct.new('GithubStatus', :state, :description, :context, :created_at)
Struct.new('GithubStatus', :state, :description, :context, :created_at, :target_url)
Struct::GithubStatus.superclass

setup do
Expand Down Expand Up @@ -633,7 +633,7 @@ class CommitsTest < ActiveSupport::TestCase
expected_status_attributes = { state: new_state, description: initial_state, context: 'ci/travis' }
add_status = lambda do
attrs = expected_status_attributes.merge(created_at: 1.day.ago.to_formatted_s(:db))
commit.create_status_from_github!(Struct::GithubStatus.new(attrs))
commit.create_status_from_github!(Struct::GithubStatus.new(**attrs))
end
expect_hook_emit(commit, :commit_status, expected_status_attributes) do
if should_fire
Expand Down

0 comments on commit 28c5d94

Please sign in to comment.