Skip to content

Commit

Permalink
Cleanup trailing whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
dfens committed Oct 12, 2012
1 parent fc5a3e9 commit ab9140f
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@


class ParametersPermitTest < ActiveSupport::TestCase class ParametersPermitTest < ActiveSupport::TestCase
setup do setup do
@params = ActionController::Parameters.new({ person: { @params = ActionController::Parameters.new({ person: {
age: "32", name: { first: "David", last: "Heinemeier Hansson" } age: "32", name: { first: "David", last: "Heinemeier Hansson" }
}}) }})
end end
Expand Down
2 changes: 1 addition & 1 deletion activemodel/test/cases/secure_password_test.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class SecurePasswordTest < ActiveModel::TestCase
end end


test "User should not be created with blank digest" do test "User should not be created with blank digest" do
assert_raise RuntimeError do assert_raise RuntimeError do
@user.run_callbacks :create @user.run_callbacks :create
end end
@user.password = "supersecretpassword" @user.password = "supersecretpassword"
Expand Down
2 changes: 1 addition & 1 deletion activerecord/test/cases/adapters/postgresql/schema_test.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def test_raise_create_schema_with_existing_schema


def test_drop_schema def test_drop_schema
begin begin
@connection.create_schema "test_schema3" @connection.create_schema "test_schema3"
ensure ensure
@connection.drop_schema "test_schema3" @connection.drop_schema "test_schema3"
end end
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def test_copy_table_with_id_col_that_is_not_primary_key


def test_copy_table_with_unconventional_primary_key def test_copy_table_with_unconventional_primary_key
test_copy_table('owners', 'owners_unconventional') do |from, to, options| 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') copied_pk = @connection.primary_key('owners_unconventional')
assert_equal original_pk, copied_pk assert_equal original_pk, copied_pk
end end
Expand Down
2 changes: 1 addition & 1 deletion activerecord/test/cases/migration/change_schema_test.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ def test_column_exists_with_definition
connection.create_table :testings do |t| connection.create_table :testings do |t|
t.column :foo, :string, limit: 100 t.column :foo, :string, limit: 100
t.column :bar, :decimal, precision: 8, scale: 2 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' t.column :taggable_type, :string, default: 'Photo'
end end


Expand Down
2 changes: 1 addition & 1 deletion activerecord/test/cases/query_cache_test.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def test_exceptional_middleware_assigns_original_connection_id_on_error
} }
assert_raises(RuntimeError) { mw.call({}) } assert_raises(RuntimeError) { mw.call({}) }


assert_equal connection_id, ActiveRecord::Base.connection_id assert_equal connection_id, ActiveRecord::Base.connection_id
end end


def test_middleware_delegates def test_middleware_delegates
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def reset_i18n_load_path
I18n.load_path.clear I18n.load_path.clear
I18n.backend = I18n::Backend::Simple.new I18n.backend = I18n::Backend::Simple.new
yield yield
ensure ensure
I18n.load_path.replace @old_load_path I18n.load_path.replace @old_load_path
I18n.backend = @old_backend I18n.backend = @old_backend
end end
Expand Down
2 changes: 1 addition & 1 deletion activesupport/test/callbacks_test.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def dispatch
end end


class Child < ParentController 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 skip_callback :dispatch, :after, :log2
end end


Expand Down

3 comments on commit ab9140f

@dnurzynski
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good job men!

@nowi
Copy link

@nowi nowi commented on ab9140f Jul 31, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

@dfens
Copy link
Contributor Author

@dfens dfens commented on ab9140f Aug 1, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thx guys, that whitespaces were real pain in the ass

Please sign in to comment.