Commit 85c448d7 authored by James Lopez's avatar James Lopez

fix specs

parent f9fd0ff1
...@@ -11,12 +11,10 @@ module Gitlab ...@@ -11,12 +11,10 @@ module Gitlab
custom_query = "#{stage}_custom_query".to_sym custom_query = "#{stage}_custom_query".to_sym
@query.execute(stage) do |base_query| @query.execute(stage) do |base_query|
send(custom_query, base_query) if self.respond_to?(custom_query) public_send(custom_query, base_query) if self.respond_to?(custom_query)
end end
end end
private
def issue_custom_query(base_query) def issue_custom_query(base_query)
base_query.join(user_table).on(issue_table[:author_id].eq(user_table[:id])) base_query.join(user_table).on(issue_table[:author_id].eq(user_table[:id]))
end end
......
...@@ -12,11 +12,9 @@ module Gitlab ...@@ -12,11 +12,9 @@ module Gitlab
end end
def get def get
send(@stage).freeze if self.respond_to?(@stage) public_send(@stage).freeze if self.respond_to?(@stage)
end end
private
def issue def issue
{ start_time_attrs: issue_table[:created_at], { start_time_attrs: issue_table[:created_at],
end_time_attrs: [issue_metrics_table[:first_associated_with_milestone_at], end_time_attrs: [issue_metrics_table[:first_associated_with_milestone_at],
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment