summaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/issue_nested_set_concurrency_test.rb2
-rw-r--r--test/unit/lib/redmine/views/builders/json_test.rb2
-rw-r--r--test/unit/lib/redmine/views/builders/xml_test.rb2
-rw-r--r--test/unit/mailer_localisation_test.rb2
4 files changed, 4 insertions, 4 deletions
diff --git a/test/unit/issue_nested_set_concurrency_test.rb b/test/unit/issue_nested_set_concurrency_test.rb
index 3d5bde047..87443c548 100644
--- a/test/unit/issue_nested_set_concurrency_test.rb
+++ b/test/unit/issue_nested_set_concurrency_test.rb
@@ -124,7 +124,7 @@ class IssueNestedSetConcurrencyTest < ActiveSupport::TestCase
private
- def threaded(count, &block)
+ def threaded(count, &)
with_settings :notified_events => [] do
threads = []
count.times do |i|
diff --git a/test/unit/lib/redmine/views/builders/json_test.rb b/test/unit/lib/redmine/views/builders/json_test.rb
index 7622a4c19..afd772782 100644
--- a/test/unit/lib/redmine/views/builders/json_test.rb
+++ b/test/unit/lib/redmine/views/builders/json_test.rb
@@ -124,7 +124,7 @@ class Redmine::Views::Builders::JsonTest < ActiveSupport::TestCase
end
end
- def assert_json_output(expected, &block)
+ def assert_json_output(expected, &)
builder = Redmine::Views::Builders::Json.new(ActionDispatch::TestRequest.create, ActionDispatch::TestResponse.create)
yield(builder)
assert_equal(expected, ActiveSupport::JSON.decode(builder.output))
diff --git a/test/unit/lib/redmine/views/builders/xml_test.rb b/test/unit/lib/redmine/views/builders/xml_test.rb
index 42ff882d7..22aee3635 100644
--- a/test/unit/lib/redmine/views/builders/xml_test.rb
+++ b/test/unit/lib/redmine/views/builders/xml_test.rb
@@ -60,7 +60,7 @@ class Redmine::Views::Builders::XmlTest < ActiveSupport::TestCase
end
end
- def assert_xml_output(expected, &block)
+ def assert_xml_output(expected, &)
builder = Redmine::Views::Builders::Xml.new(ActionDispatch::TestRequest.create, ActionDispatch::TestResponse.create)
yield(builder)
assert_equal('<?xml version="1.0" encoding="UTF-8"?>' + expected, builder.output)
diff --git a/test/unit/mailer_localisation_test.rb b/test/unit/mailer_localisation_test.rb
index c125e515d..a19644a15 100644
--- a/test/unit/mailer_localisation_test.rb
+++ b/test/unit/mailer_localisation_test.rb
@@ -131,7 +131,7 @@ class MailerLocalisationTest < ActiveSupport::TestCase
private
- def with_each_user_language(&block)
+ def with_each_user_language(&)
user = User.find(2)
valid_languages.each do |lang|
user.update_attribute :language, lang