Skip to content

Commit 7a56410

Browse files
committed
fix tests in jruby
1 parent bef446f commit 7a56410

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/bridges/bridge_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def setup
1010
def teardown; end
1111

1212
def test__shouldnt_throw_errors
13-
ActiveScaffold::Bridges.run_all
13+
assert_nothing_raised { ActiveScaffold::Bridges.run_all }
1414
end
1515

1616
def test__file_column_bridge

test/misc/finder_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def test_create_conditions_for_columns
3333

3434
def test_method_sorting
3535
column = ActiveScaffold::DataStructures::Column.new('a', ModelStub)
36-
column.sort_by method: proc { self }
36+
column.sort_by method: proc { itself }
3737

3838
collection = [16_000, 2853, 98_765, 6188, 4]
3939
assert_equal collection.sort, @klass.send(:sort_collection_by_column, collection, column, 'asc')
@@ -43,7 +43,7 @@ def test_method_sorting
4343
result = @klass.send(:sort_collection_by_column, collection, column, 'asc')
4444
assert_equal [nil, 'a', 'b'], result
4545

46-
column.sort_by method: 'self'
46+
column.sort_by method: 'itself'
4747
collection = [3, 1, 2]
4848
assert_equal collection.sort, @klass.send(:sort_collection_by_column, collection, column, 'asc')
4949
end

0 commit comments

Comments
 (0)