Skip to content
This repository
Browse code

Cleanup trailing whitespaces

  • Loading branch information...
commit ab9140ff0274ade509d6905c20e1d2546112616e 1 parent fc5a3e9
Paweł Mikołajewski authored October 12, 2012
2  actionpack/test/controller/parameters/parameters_permit_test.rb
@@ -3,7 +3,7 @@
3 3
 
4 4
 class ParametersPermitTest < ActiveSupport::TestCase
5 5
   setup do
6  
-    @params = ActionController::Parameters.new({ person: { 
  6
+    @params = ActionController::Parameters.new({ person: {
7 7
       age: "32", name: { first: "David", last: "Heinemeier Hansson" }
8 8
     }})
9 9
   end
2  activemodel/test/cases/secure_password_test.rb
@@ -55,7 +55,7 @@ class SecurePasswordTest < ActiveModel::TestCase
55 55
   end
56 56
 
57 57
   test "User should not be created with blank digest" do
58  
-    assert_raise RuntimeError do 
  58
+    assert_raise RuntimeError do
59 59
       @user.run_callbacks :create
60 60
     end
61 61
     @user.password = "supersecretpassword"
2  activerecord/test/cases/adapters/postgresql/schema_test.rb
@@ -97,7 +97,7 @@ def test_raise_create_schema_with_existing_schema
97 97
 
98 98
   def test_drop_schema
99 99
     begin
100  
-      @connection.create_schema "test_schema3" 
  100
+      @connection.create_schema "test_schema3"
101 101
     ensure
102 102
       @connection.drop_schema "test_schema3"
103 103
     end
2  activerecord/test/cases/adapters/sqlite3/copy_table_test.rb
@@ -59,7 +59,7 @@ def test_copy_table_with_id_col_that_is_not_primary_key
59 59
 
60 60
   def test_copy_table_with_unconventional_primary_key
61 61
     test_copy_table('owners', 'owners_unconventional') do |from, to, options|
62  
-      original_pk = @connection.primary_key('owners') 
  62
+      original_pk = @connection.primary_key('owners')
63 63
       copied_pk = @connection.primary_key('owners_unconventional')
64 64
       assert_equal original_pk, copied_pk
65 65
     end
2  activerecord/test/cases/migration/change_schema_test.rb
@@ -293,7 +293,7 @@ def test_column_exists_with_definition
293 293
         connection.create_table :testings do |t|
294 294
           t.column :foo, :string, limit: 100
295 295
           t.column :bar, :decimal, precision: 8, scale: 2
296  
-          t.column :taggable_id, :integer, null: false 
  296
+          t.column :taggable_id, :integer, null: false
297 297
           t.column :taggable_type, :string, default: 'Photo'
298 298
         end
299 299
 
2  activerecord/test/cases/query_cache_test.rb
@@ -48,7 +48,7 @@ def test_exceptional_middleware_assigns_original_connection_id_on_error
48 48
     }
49 49
     assert_raises(RuntimeError) { mw.call({}) }
50 50
 
51  
-    assert_equal connection_id, ActiveRecord::Base.connection_id 
  51
+    assert_equal connection_id, ActiveRecord::Base.connection_id
52 52
   end
53 53
 
54 54
   def test_middleware_delegates
2  activerecord/test/cases/validations/i18n_generate_message_validation_test.rb
@@ -13,7 +13,7 @@ def reset_i18n_load_path
13 13
     I18n.load_path.clear
14 14
     I18n.backend = I18n::Backend::Simple.new
15 15
     yield
16  
-  ensure 
  16
+  ensure
17 17
     I18n.load_path.replace @old_load_path
18 18
     I18n.backend = @old_backend
19 19
   end
2  activesupport/test/callbacks_test.rb
@@ -120,7 +120,7 @@ def dispatch
120 120
   end
121 121
 
122 122
   class Child < ParentController
123  
-    skip_callback :dispatch, :before, :log, :if => proc {|c| c.action_name == :update} 
  123
+    skip_callback :dispatch, :before, :log, :if => proc {|c| c.action_name == :update}
124 124
     skip_callback :dispatch, :after, :log2
125 125
   end
126 126
 

3 notes on commit ab9140f

Damian Nurzyński

good job men!

Philipp Nowakowski
nowi commented on ab9140f July 31, 2013

nice

Paweł Mikołajewski

thx guys, that whitespaces were real pain in the ass

Please sign in to comment.
Something went wrong with that request. Please try again.