mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
removed unnecessary semicolons
This commit is contained in:
parent
bf6456e053
commit
03dd47ff21
7 changed files with 17 additions and 17 deletions
|
@ -214,9 +214,9 @@ class CacheHelperOutputBufferTest < BaseCachingTest
|
||||||
output_buffer = ActionView::OutputBuffer.new
|
output_buffer = ActionView::OutputBuffer.new
|
||||||
controller = MockController.new
|
controller = MockController.new
|
||||||
cache_helper = Class.new do
|
cache_helper = Class.new do
|
||||||
def self.controller; end;
|
def self.controller; end
|
||||||
def self.output_buffer; end;
|
def self.output_buffer; end
|
||||||
def self.output_buffer=; end;
|
def self.output_buffer=; end
|
||||||
end
|
end
|
||||||
cache_helper.extend(ActionView::Helpers::CacheHelper)
|
cache_helper.extend(ActionView::Helpers::CacheHelper)
|
||||||
|
|
||||||
|
@ -235,9 +235,9 @@ class CacheHelperOutputBufferTest < BaseCachingTest
|
||||||
output_buffer = ActiveSupport::SafeBuffer.new
|
output_buffer = ActiveSupport::SafeBuffer.new
|
||||||
controller = MockController.new
|
controller = MockController.new
|
||||||
cache_helper = Class.new do
|
cache_helper = Class.new do
|
||||||
def self.controller; end;
|
def self.controller; end
|
||||||
def self.output_buffer; end;
|
def self.output_buffer; end
|
||||||
def self.output_buffer=; end;
|
def self.output_buffer=; end
|
||||||
end
|
end
|
||||||
cache_helper.extend(ActionView::Helpers::CacheHelper)
|
cache_helper.extend(ActionView::Helpers::CacheHelper)
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,7 @@ module Rails
|
||||||
@_env ||= ActiveSupport::StringInquirer.new(ENV["RAILS_ENV"] || ENV["RACK_ENV"] || "test")
|
@_env ||= ActiveSupport::StringInquirer.new(ENV["RAILS_ENV"] || ENV["RACK_ENV"] || "test")
|
||||||
end
|
end
|
||||||
|
|
||||||
def root; end;
|
def root; end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -333,9 +333,9 @@ class CacheHelperOutputBufferTest < ActionController::TestCase
|
||||||
output_buffer = ActionView::OutputBuffer.new
|
output_buffer = ActionView::OutputBuffer.new
|
||||||
controller = MockController.new
|
controller = MockController.new
|
||||||
cache_helper = Class.new do
|
cache_helper = Class.new do
|
||||||
def self.controller; end;
|
def self.controller; end
|
||||||
def self.output_buffer; end;
|
def self.output_buffer; end
|
||||||
def self.output_buffer=; end;
|
def self.output_buffer=; end
|
||||||
end
|
end
|
||||||
cache_helper.extend(ActionView::Helpers::CacheHelper)
|
cache_helper.extend(ActionView::Helpers::CacheHelper)
|
||||||
|
|
||||||
|
@ -354,9 +354,9 @@ class CacheHelperOutputBufferTest < ActionController::TestCase
|
||||||
output_buffer = ActiveSupport::SafeBuffer.new
|
output_buffer = ActiveSupport::SafeBuffer.new
|
||||||
controller = MockController.new
|
controller = MockController.new
|
||||||
cache_helper = Class.new do
|
cache_helper = Class.new do
|
||||||
def self.controller; end;
|
def self.controller; end
|
||||||
def self.output_buffer; end;
|
def self.output_buffer; end
|
||||||
def self.output_buffer=; end;
|
def self.output_buffer=; end
|
||||||
end
|
end
|
||||||
cache_helper.extend(ActionView::Helpers::CacheHelper)
|
cache_helper.extend(ActionView::Helpers::CacheHelper)
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ require "active_support/json/decoding"
|
||||||
require "rails/engine"
|
require "rails/engine"
|
||||||
|
|
||||||
class TestCaseTest < ActionController::TestCase
|
class TestCaseTest < ActionController::TestCase
|
||||||
def self.fixture_path; end;
|
def self.fixture_path; end
|
||||||
|
|
||||||
class TestController < ActionController::Base
|
class TestController < ActionController::Base
|
||||||
def no_op
|
def no_op
|
||||||
|
|
|
@ -23,7 +23,7 @@ module ActiveRecord
|
||||||
assert_equal "bar", cache["foo"]
|
assert_equal "bar", cache["foo"]
|
||||||
|
|
||||||
pid = fork {
|
pid = fork {
|
||||||
lookup = cache["foo"];
|
lookup = cache["foo"]
|
||||||
exit!(!lookup)
|
exit!(!lookup)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ class SQLite3StatementPoolTest < ActiveRecord::SQLite3TestCase
|
||||||
assert_equal "bar", cache["foo"]
|
assert_equal "bar", cache["foo"]
|
||||||
|
|
||||||
pid = fork {
|
pid = fork {
|
||||||
lookup = cache["foo"];
|
lookup = cache["foo"]
|
||||||
exit!(!lookup)
|
exit!(!lookup)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -87,7 +87,7 @@ class AssertDifferenceTest < ActiveSupport::TestCase
|
||||||
|
|
||||||
def test_expression_is_evaluated_in_the_appropriate_scope
|
def test_expression_is_evaluated_in_the_appropriate_scope
|
||||||
silence_warnings do
|
silence_warnings do
|
||||||
local_scope = "foo";
|
local_scope = "foo"
|
||||||
local_scope = local_scope # to suppress unused variable warning
|
local_scope = local_scope # to suppress unused variable warning
|
||||||
assert_difference("local_scope; @object.num") { @object.increment }
|
assert_difference("local_scope; @object.num") { @object.increment }
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue