Enforce consistent whitespaces around blocks, equal signs, and in parameters in Ruby code
diff --git a/test/rb/benchmarks/protocol_benchmark.rb b/test/rb/benchmarks/protocol_benchmark.rb
index 64fb4fc..897743f 100644
--- a/test/rb/benchmarks/protocol_benchmark.rb
+++ b/test/rb/benchmarks/protocol_benchmark.rb
@@ -215,5 +215,4 @@
       Fixtures::Structs::OneOfEach.new.read(header_zlib_protocol)
     end
   end
-
 end
diff --git a/test/rb/integration/TestClient.rb b/test/rb/integration/TestClient.rb
index 7a360ef..18fc5ff 100755
--- a/test/rb/integration/TestClient.rb
+++ b/test/rb/integration/TestClient.rb
@@ -219,7 +219,7 @@
 
   def test_list
     p 'test_list'
-    val = [1,2,3,4,5]
+    val = [1, 2, 3, 4, 5]
     assert_equal(@client.testList(val), val)
     assert_kind_of(Array, @client.testList(val))
   end
@@ -235,7 +235,7 @@
 
   def test_typedef
     p 'test_typedef'
-    #UserId  testTypedef(1: UserId thing),
+    # UserId  testTypedef(1: UserId thing),
     assert_equal(@client.testTypedef(309858235082523), 309858235082523)
     assert_kind_of(Integer, @client.testTypedef(309858235082523))
     true
@@ -243,7 +243,7 @@
 
   def test_set
     p 'test_set'
-    val = Set.new([1,2,3])
+    val = Set.new([1, 2, 3])
     assert_equal(@client.testSet(val), val)
     assert_kind_of(Set, @client.testSet(val))
   end
diff --git a/test/rb/integration/TestServer.rb b/test/rb/integration/TestServer.rb
index d0ba1fe..54f3504 100755
--- a/test/rb/integration/TestServer.rb
+++ b/test/rb/integration/TestServer.rb
@@ -32,13 +32,11 @@
   [:testVoid, :testString, :testBool, :testByte, :testI32, :testI64, :testDouble, :testBinary,
    :testStruct, :testMap, :testStringMap, :testSet, :testList, :testNest, :testEnum, :testTypedef,
    :testEnum, :testTypedef, :testMultiException, :testUuid].each do |meth|
-
     define_method(meth) do |thing|
       p meth
       p thing
       thing
     end
-
   end
 
   def testVoid()
diff --git a/test/rb/test_helper.rb b/test/rb/test_helper.rb
index c1ed779..735d899 100644
--- a/test/rb/test_helper.rb
+++ b/test/rb/test_helper.rb
@@ -27,7 +27,7 @@
   module Struct
     def ==(other)
       return false unless other.is_a? self.class
-      self.class.const_get(:FIELDS).collect {|fid, data| data[:name] }.all? do |field|
+      self.class.const_get(:FIELDS).collect { |fid, data| data[:name] }.all? do |field|
         send(field) == other.send(field)
       end
     end
diff --git a/test/rb/test_suite.rb b/test/rb/test_suite.rb
index dac2d4a..b11b578 100644
--- a/test/rb/test_suite.rb
+++ b/test/rb/test_suite.rb
@@ -17,4 +17,4 @@
 # under the License.
 #
 
-Dir["{core,generation}/**/*.rb"].each {|f| require f }
+Dir["{core,generation}/**/*.rb"].each { |f| require f }