File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change
1
+ * Deprecate arguments on ` assert_nothing_raised ` .
2
+
3
+ ` assert_nothing_raised ` does not assert the arguments that have been passed
4
+ in (usually a specific exception class) since the method only yields the
5
+ block. So as not to confuse the users that the arguments have meaning, they
6
+ are being deprecated.
7
+
8
+ * Tara Scherner de la Fuente*
9
+
1
10
* Make ` benchmark('something', silence: true) ` actually work
2
11
3
12
* DHH*
6
15
7
16
` #on_weekday? ` returns ` true ` if the receiving date/time does not fall on a Saturday
8
17
or Sunday.
9
-
18
+
10
19
* Vipul A M*
11
20
12
21
* Add ` Array#second_to_last ` and ` Array#third_to_last ` methods.
Original file line number Diff line number Diff line change @@ -74,7 +74,11 @@ def test_order
74
74
# assert_nothing_raised do
75
75
# perform_service(param: 'no_exception')
76
76
# end
77
- def assert_nothing_raised
77
+ def assert_nothing_raised ( *args )
78
+ if args . present?
79
+ ActiveSupport ::Deprecation . warn ( "Passing arguments to assert_nothing_raised
80
+ is deprecated and will be removed in Rails 5.1." )
81
+ end
78
82
yield
79
83
end
80
84
end
You can’t perform that action at this time.
0 commit comments