1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Cleanup trailing whitespaces

This commit is contained in:
dfens 2012-10-12 09:56:39 +02:00
parent fc5a3e9411
commit ab9140ff02
8 changed files with 8 additions and 8 deletions

View file

@ -3,7 +3,7 @@ require 'action_controller/metal/strong_parameters'
class ParametersPermitTest < ActiveSupport::TestCase
setup do
@params = ActionController::Parameters.new({ person: {
@params = ActionController::Parameters.new({ person: {
age: "32", name: { first: "David", last: "Heinemeier Hansson" }
}})
end

View file

@ -55,7 +55,7 @@ class SecurePasswordTest < ActiveModel::TestCase
end
test "User should not be created with blank digest" do
assert_raise RuntimeError do
assert_raise RuntimeError do
@user.run_callbacks :create
end
@user.password = "supersecretpassword"

View file

@ -97,7 +97,7 @@ class SchemaTest < ActiveRecord::TestCase
def test_drop_schema
begin
@connection.create_schema "test_schema3"
@connection.create_schema "test_schema3"
ensure
@connection.drop_schema "test_schema3"
end

View file

@ -59,7 +59,7 @@ class CopyTableTest < ActiveRecord::TestCase
def test_copy_table_with_unconventional_primary_key
test_copy_table('owners', 'owners_unconventional') do |from, to, options|
original_pk = @connection.primary_key('owners')
original_pk = @connection.primary_key('owners')
copied_pk = @connection.primary_key('owners_unconventional')
assert_equal original_pk, copied_pk
end

View file

@ -293,7 +293,7 @@ module ActiveRecord
connection.create_table :testings do |t|
t.column :foo, :string, limit: 100
t.column :bar, :decimal, precision: 8, scale: 2
t.column :taggable_id, :integer, null: false
t.column :taggable_id, :integer, null: false
t.column :taggable_type, :string, default: 'Photo'
end

View file

@ -48,7 +48,7 @@ class QueryCacheTest < ActiveRecord::TestCase
}
assert_raises(RuntimeError) { mw.call({}) }
assert_equal connection_id, ActiveRecord::Base.connection_id
assert_equal connection_id, ActiveRecord::Base.connection_id
end
def test_middleware_delegates

View file

@ -13,7 +13,7 @@ class I18nGenerateMessageValidationTest < ActiveRecord::TestCase
I18n.load_path.clear
I18n.backend = I18n::Backend::Simple.new
yield
ensure
ensure
I18n.load_path.replace @old_load_path
I18n.backend = @old_backend
end

View file

@ -120,7 +120,7 @@ module CallbacksTest
end
class Child < ParentController
skip_callback :dispatch, :before, :log, :if => proc {|c| c.action_name == :update}
skip_callback :dispatch, :before, :log, :if => proc {|c| c.action_name == :update}
skip_callback :dispatch, :after, :log2
end