File: mspec

package info (click to toggle)
ruby-logger-application 0.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 184 kB
  • ctags: 31
  • sloc: ruby: 284; makefile: 2
file content (67 lines) | stat: -rw-r--r-- 2,031 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
Description: Disable tests requiring mspec
 Disable tests requiring mspec as packaging of mspec is blocked by the 
 reason it still uses RSpec 2.
Author: Balasankar C <balasankarc@autistici.org>
Last-Update: 2015-06-28
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/spec/log_spec.rb
+++ b/spec/log_spec.rb
@@ -65,9 +65,9 @@
     end
   end
 
-  it "sets the log device" do
-    regex = /STDERR Message/
-    @app.log = STDERR
-    lambda { @app.log(Logger::WARN, "STDERR Message") }.should output_to_fd(regex, STDERR)
-  end
+#  it "sets the log device" do
+    #regex = /STDERR Message/
+    #@app.log = STDERR
+    #lambda { @app.log(Logger::WARN, "STDERR Message") }.should output_to_fd(regex, STDERR)
+  #end
 end
--- a/spec/new_spec.rb
+++ b/spec/new_spec.rb
@@ -31,9 +31,9 @@
     LoggerSpecs::strip_date(third).should  == "INFO -- : End of . (status: true)\n"
   end
 
-  it "defaults logs to STDERR" do
-    regex = /INFO.*WARN.*INFO.*/m
-    lambda { LoggerSpecs::TestApp.new(nil, nil).start }.should output_to_fd(regex, STDERR)
-    @log_file.rewind
-  end
+#  it "defaults logs to STDERR" do
+    #regex = /INFO.*WARN.*INFO.*/m
+    #lambda { LoggerSpecs::TestApp.new(nil, nil).start }.should output_to_fd(regex, STDERR)
+    #@log_file.rewind
+  #end
 end
--- a/spec/set_log_spec.rb
+++ b/spec/set_log_spec.rb
@@ -12,9 +12,9 @@
     rm_r @file_path
   end
 
-  it "sets the log device for the logger" do
-    regex = /STDERR Message/
-    @app.set_log(STDERR)
-    lambda { @app.log(Logger::WARN, "STDERR Message") }.should output_to_fd(regex, STDERR)
-  end
+#  it "sets the log device for the logger" do
+    #regex = /STDERR Message/
+    #@app.set_log(STDERR)
+    #lambda { @app.log(Logger::WARN, "STDERR Message") }.should output_to_fd(regex, STDERR)
+  #end
 end
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -1,5 +1,5 @@
 require 'logger/application'
-require 'mspec/matchers/output_to_fd'
+#require 'mspec/matchers/output_to_fd'
 require 'tempfile'
 require 'fileutils'