File: fix-tests.patch

package info (click to toggle)
ruby-ffi-yajl 2.3.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 960 kB
  • sloc: ruby: 1,905; ansic: 527; makefile: 6
file content (15 lines) | stat: -rw-r--r-- 621 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description: Fix test failure on some specific architectures
 Allow rspec to call the original expanded_library_names method
Author: Lucas Kanashiro <lucas.kanashiro@canonical.com>
Last-Updated: 2020-02-14

--- a/spec/ffi_yajl/map_library_name_spec.rb
+++ b/spec/ffi_yajl/map_library_name_spec.rb
@@ -63,6 +63,7 @@
           expanded_library_names.push(path)
           expect(File).to receive(:file?).with(path).and_return(true)
         end
+        allow(Test).to receive(:expanded_library_names).and_call_original
         expect(Test.send(:expanded_library_names)).to eq(expanded_library_names)
       end
     end