Fix trailing whitespace

This commit is contained in:
Holger Just 2011-08-27 18:26:12 +02:00
parent 7eeeaa7d22
commit c57c598204
12 changed files with 24 additions and 24 deletions

View File

@ -268,5 +268,5 @@ private
project.members << m
end
end
end

View File

@ -18,7 +18,7 @@ class Change < ActiveRecord::Base
before_save :init_path
delegate :repository_encoding, :to => :changeset, :allow_nil => true, :prefix => true
def relative_path
changeset.repository.relative_path(path)
end

View File

@ -82,7 +82,7 @@ class Changeset < ActiveRecord::Base
nil
end
end
# Committer of the Changeset
#
# Attribute reader for committer that encodes the committer string to
@ -278,7 +278,7 @@ class Changeset < ActiveRecord::Base
end
end
else
txtar = ""
begin
txtar += Iconv.new('UTF-8', normalized_encoding).iconv(str)

View File

@ -549,7 +549,7 @@ class Issue < ActiveRecord::Base
def nested_set_span
rgt - lft
end
# Returns a string of css classes that apply to the issue
def css_classes
s = "issue status-#{status.position} priority-#{priority.position}"

View File

@ -34,7 +34,7 @@ class UpdateJournalsForActsAsJournalized < ActiveRecord::Migration
rescue ActiveRecord::RecordInvalid => ex
puts "Error saving: #{j.class.to_s}##{j.id} - #{ex.message}"
end
end
end
end

View File

@ -51,14 +51,14 @@ class BuildInitialJournalsForActsAsJournalized < ActiveRecord::Migration
end
end
end
end
end
end
def self.down
# No-op
end
end

View File

@ -34,15 +34,15 @@ class AddChangesFromJournalDetailsForActsAsJournalized < ActiveRecord::Migration
rescue ActiveRecord::RecordInvalid => ex
puts "Error saving: #{journal.class.to_s}##{journal.id} - #{ex.message}"
end
end
end
end
def self.down
# No-op
end
end

View File

@ -86,7 +86,7 @@ class IssuesTest < ActionController::IntegrationTest
assert_select "a", :text => /testfile.txt/
end
end
# remove the attachments
Issue.find(1).attachments.each(&:destroy)
assert_equal 0, Issue.find(1).attachments.length

View File

@ -882,7 +882,7 @@ class IssueTest < ActiveSupport::TestCase
issue.update_attribute(:description, "Description with newlines\n\nembedded")
issue.reload
assert issue.description.include?("\n")
assert_no_difference("Journal.count") do
issue.safe_attributes= {
'description' => "Description with newlines\r\n\r\nembedded"
@ -892,5 +892,5 @@ class IssueTest < ActiveSupport::TestCase
assert_equal "Description with newlines\n\nembedded", issue.reload.description
end
end

View File

@ -39,7 +39,7 @@ class JournalObserverTest < ActiveSupport::TestCase
assert @issue.save
end
end
end
context "#after_create for 'issue_note_added'" do
@ -49,7 +49,7 @@ class JournalObserverTest < ActiveSupport::TestCase
@issue.init_journal(@user, 'This update has a note')
assert @issue.save
end
end
should "not send a notification with not configured" do
@ -58,7 +58,7 @@ class JournalObserverTest < ActiveSupport::TestCase
@issue.init_journal(@user, 'This update has a note')
assert @issue.save
end
end
end
@ -71,7 +71,7 @@ class JournalObserverTest < ActiveSupport::TestCase
assert @issue.save
end
end
should "not send a notification with not configured" do
@ -93,7 +93,7 @@ class JournalObserverTest < ActiveSupport::TestCase
@issue.priority = IssuePriority.generate!
assert @issue.save
end
end
should "not send a notification with not configured" do
@ -103,7 +103,7 @@ class JournalObserverTest < ActiveSupport::TestCase
@issue.priority = IssuePriority.generate!
assert @issue.save
end
end
end
end

View File

@ -73,13 +73,13 @@ class JournalTest < ActiveSupport::TestCase
assert_difference("Journal.count") do
assert issue.save
end
journal = issue.reload.journals.first
assert_equal ["","Test initial journal"], journal.changes["subject"]
assert_equal [0, @project.id], journal.changes["project_id"]
assert_equal [nil, "Some content"], journal.changes["description"]
end
test "creating a journal should update the updated_on value of the parent record (touch)" do
@user = User.generate!
@project = Project.generate!

View File

@ -145,6 +145,6 @@ class MessageTest < ActiveSupport::TestCase
message = Message.new(:board => @board, :subject => 'Test message', :content => 'Test message content', :author => @user)
assert message.save
end
end
end