File: reset_instance_before_create.patch

package info (click to toggle)
ruby-nenv 0.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 180 kB
  • sloc: ruby: 517; sh: 4; makefile: 2
file content (16 lines) | stat: -rw-r--r-- 493 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: reset instance before create
Author:  HIGUCHI Daisuke (VDR dai) <dai@debian.org>
Last-Update: 2017-11-27

Index: ruby-nenv/spec/lib/nenv_spec.rb
===================================================================
--- ruby-nenv.orig/spec/lib/nenv_spec.rb
+++ ruby-nenv/spec/lib/nenv_spec.rb
@@ -54,6 +54,7 @@ RSpec.describe Nenv do
 
     context 'with existing method' do
       before do
+        Nenv.method(:reset).call
         Nenv.instance.create_method(:foo?)
       end