lib/fitting/report/action.rb in fitting-2.17.0 vs lib/fitting/report/action.rb in fitting-2.18.0
- old
+ new
@@ -15,13 +15,11 @@
def path
@action.path.to_s
end
- def responses
- @responses
- end
+ attr_reader :responses, :tests
def add_test(test)
@tests.push(test)
end
@@ -36,17 +34,16 @@
str = str.gsub(/\\{\w+\\}/, '[^&=\/]+')
str = "\\A#{str}\\z"
@regexp = Regexp.new(str)
end
- def tests
- @tests
- end
-
def details
{
- tests_without_responses: @tests.without_responses,
- responses_details: @responses.to_a.map { |r| {method: r.status, tests_size: r.tests.size, json_schema: r.id, combinations: r.details} }
+ tests_without_responses: @tests.without_responses,
+ responses_details: @responses.to_a.map do |r|
+ { method: r.status, tests_size: r.tests.size, json_schema: r.id,
+ combinations: r.details }
+ end
}
end
end
end
end