Make rcov happy

rcov doesn't grok multi-line strings
pull/6827/head
friflaj 14 years ago
parent a7a561e631
commit 9e19fbc75f
  1. 9
      app/controllers/backlogs_controller.rb
  2. 2
      features/scrum_master.feature
  3. 6
      features/step_definitions/_then_steps.rb

@ -132,7 +132,7 @@ class BacklogsController < ApplicationController
end
}
open_issues = "
open_issues = <<-EOSQL
#{IssueStatus.table_name}.is_closed = ?
and tracker_id in (?)
and fixed_version_id in (
@ -143,8 +143,9 @@ class BacklogsController < ApplicationController
and not sprint_start_date is null
and effective_date >= ?
)
"
open_issues_and_impediments = "
EOSQL
open_issues_and_impediments = <<-EOSQL
(assigned_to_id is null or assigned_to_id = ?)
and
(
@ -158,7 +159,7 @@ class BacklogsController < ApplicationController
where #{open_issues})
)
)
"
EOSQL
conditions = [open_issues_and_impediments]
# me or none

@ -49,6 +49,6 @@ Feature: Scrum Master
Scenario: Request the project calendar feed
Given I have set my API access key
And I am viewing the issues list
Then show me the list of stories
When I download the calendar feed
Then the request should complete successfully

@ -34,9 +34,9 @@ Then /^show me the list of stories$/ do
sprint_max = (sprints.map{|s| s.name} << "sprint").sort{|a,b| a.length <=> b.length}.last.length
puts "\n"
puts "\t| id | position | #{'subject'.ljust(subject_max)} | #{'sprint'.ljust(sprint_max)} |"
puts "\t| #{'id'.ljust(3)} | #{'position'.ljust(8)} | #{'status'.ljust(12)} | #{'assignee'.ljust(12)} | #{'subject'.ljust(subject_max)} | #{'sprint'.ljust(sprint_max)} |"
stories.each do |story|
puts "\t| #{story.id.to_s.ljust(3)} | #{story.position.to_s.ljust(8)} | #{story.subject.ljust(subject_max)} | #{(story.fixed_version_id.nil? ? Sprint.new : Sprint.find(story.fixed_version_id)).name.ljust(sprint_max)} |"
puts "\t| #{story.id.to_s.ljust(3)} | #{story.position.to_s.ljust(8)} | #{story.status.name[0,12].ljust(12)} | #{story.assigned_to.to_s[0,12].ljust(12)} | #{story.subject.ljust(subject_max)} | #{(story.fixed_version_id.nil? ? Sprint.new : Sprint.find(story.fixed_version_id)).name.ljust(sprint_max)} |"
end
puts "\n\n"
end
@ -96,4 +96,4 @@ Then /^the story should have a (.+) of (.+)$/ do |attribute, value|
value = value.to_i
end
@story[attribute].should == value
end
end

Loading…
Cancel
Save