diff options
author | Genadi Samokovarov <gsamokovarov@gmail.com> | 2014-11-03 22:59:45 +0200 |
---|---|---|
committer | Genadi Samokovarov <gsamokovarov@gmail.com> | 2014-11-16 18:39:45 +0200 |
commit | 20ad04e5fcfd5b972bfffb6c47b44646c41b8a82 (patch) | |
tree | 669da8d70711a8634199611bc807488b34f37dac /actionpack/test | |
parent | 759054abfc66ba0ddc2073a83c3a4c2cdd467e9d (diff) | |
download | rails-20ad04e5fcfd5b972bfffb6c47b44646c41b8a82.tar.gz rails-20ad04e5fcfd5b972bfffb6c47b44646c41b8a82.tar.bz2 rails-20ad04e5fcfd5b972bfffb6c47b44646c41b8a82.zip |
Rename #source_extract to #source_extracts in ExceptionWrapper
It returns multiple source extracts since 1ed264bc. Also cleaned its
result structure, as we no longer need the file in a code extract.
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/dispatch/exception_wrapper_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/dispatch/exception_wrapper_test.rb b/actionpack/test/dispatch/exception_wrapper_test.rb index 57292d3191..d7408164ba 100644 --- a/actionpack/test/dispatch/exception_wrapper_test.rb +++ b/actionpack/test/dispatch/exception_wrapper_test.rb @@ -25,13 +25,13 @@ module ActionDispatch @environment = { 'action_dispatch.backtrace_cleaner' => cleaner } end - test '#source_extract fetches source fragments for every backtrace entry' do + test '#source_extracts fetches source fragments for every backtrace entry' do exception = TestError.new("lib/file.rb:42:in `index'") wrapper = ExceptionWrapper.new({}, exception) wrapper.expects(:source_fragment).with('lib/file.rb', 42).returns('foo') - assert_equal [ code: 'foo', file: 'lib/file.rb', line_number: 42 ], wrapper.source_extract + assert_equal [ code: 'foo', line_number: 42 ], wrapper.source_extracts end |