Skip to content

Commit

Permalink
Add test case for staging checks
Browse files Browse the repository at this point in the history
Had to fix some minor issues
  • Loading branch information
coolo committed Nov 14, 2018
1 parent a194fae commit e81f05b
Show file tree
Hide file tree
Showing 15 changed files with 6,186 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/api/app/models/obs_factory/staging_project.rb
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def missing_reviews
#
# @return [Hash] Hash with the metadata (currently the list of requests)
def meta
@meta ||= YAML.safe_load(description) || {}
@meta ||= YAML.safe_load(description.to_s) || {}
end

def self.attributes
Expand Down Expand Up @@ -258,7 +258,7 @@ def add_status(checkable)
@missing_checks += status.missing_checks
@checks += status.checks
else
@missing_checks += repo.required_checks
@missing_checks += checkable.required_checks
end
end

Expand Down
2 changes: 1 addition & 1 deletion src/api/app/models/repository.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def for_uuid(uuid)
end

def latest
for_uuid(proxy_association.owner.build_id)
for_uuid(proxy_association.owner.build_id).first
end
end

Expand Down
2 changes: 1 addition & 1 deletion src/api/app/models/repository_architecture.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def for_uuid(uuid)
end

def latest
for_uuid(proxy_association.owner.build_id)
for_uuid(proxy_association.owner.build_id).first
end
end

Expand Down

0 comments on commit e81f05b

Please sign in to comment.