r_spec 1.0.0.beta3 → 1.0.0.beta8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/r_spec/log.rb DELETED
@@ -1,24 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "expresenter"
4
-
5
- module RSpec
6
- # Exception for debugging purpose.
7
- class Log < ::NoMethodError
8
- # @param message [String] A message to log to the console.
9
- #
10
- # @return [nil] Write a log message to STDOUT.
11
- def self.result(message)
12
- puts " " + ::Expresenter.call(true).with(
13
- actual: nil,
14
- error: new(message),
15
- expected: 42,
16
- got: nil,
17
- matcher: :be,
18
- negate: false,
19
- level: :MAY,
20
- valid: false
21
- ).colored_string
22
- end
23
- end
24
- end
@@ -1,24 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "expresenter"
4
-
5
- module RSpec
6
- # Exception for pending expectations.
7
- class Pending < ::NotImplementedError
8
- # @param message [String] The not implemented expectation description.
9
- #
10
- # @return [nil] Write a pending expectation to STDOUT.
11
- def self.result(message)
12
- warn " " + ::Expresenter.call(true).with(
13
- actual: new(message),
14
- error: nil,
15
- expected: self,
16
- got: false,
17
- matcher: :raise_exception,
18
- negate: true,
19
- level: :SHOULD,
20
- valid: false
21
- ).colored_string
22
- end
23
- end
24
- end
data/lib/r_spec/test.rb DELETED
@@ -1,7 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module RSpec
4
- # Namespace to collect test classes.
5
- module Test
6
- end
7
- end