diff --git a/Gemfile.lock b/Gemfile.lock index c08c98a..7c6d4d6 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - openlayer (0.2.2) + openlayer (0.3.0) date faraday (~> 2.9.0) faraday-multipart diff --git a/lib/openlayer/objects/project_version.rb b/lib/openlayer/objects/project_version.rb index 093a2ca..6182e6e 100644 --- a/lib/openlayer/objects/project_version.rb +++ b/lib/openlayer/objects/project_version.rb @@ -21,9 +21,9 @@ def print_status_report end def print_test_report - puts "Failing Test Count: #{failing_test_count}" - puts "Passing Test Count: #{passing_test_count}" - puts "Total Test Count: #{total_test_count}" + puts "Failing Test Count: #{failing_goal_count}" + puts "Passing Test Count: #{passing_goal_count}" + puts "Total Test Count: #{total_goal_count}" end def to_h @@ -44,6 +44,18 @@ def refresh @attributes = OpenStruct.new handle_response client.connection.get("versions/#{project_version_id}") end + def failing_test_count + failing_goal_count + end + + def passing_test_count + passing_goal_count + end + + def total_test_count + total_goal_count + end + private def self.handle_response(response)