expectations 0.2.7 → 0.2.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/expectations/blank_slate.rb +4 -4
- data/lib/expectations/recorder.rb +1 -1
- data/rakefile.rb +1 -1
- metadata +2 -2
@@ -14,7 +14,7 @@
|
|
14
14
|
# BlankSlate is useful as a base class when writing classes that
|
15
15
|
# depend upon <tt>method_missing</tt> (e.g. dynamic proxies).
|
16
16
|
#
|
17
|
-
class BlankSlate
|
17
|
+
class Expectations::BlankSlate
|
18
18
|
class << self
|
19
19
|
|
20
20
|
# Hide the method named +name+ in the BlankSlate class. Don't
|
@@ -64,7 +64,7 @@ module Kernel
|
|
64
64
|
define_method :method_added do |name|
|
65
65
|
result = unbound_method.call(name)
|
66
66
|
return result if self != Kernel
|
67
|
-
BlankSlate.hide(name)
|
67
|
+
Expectations::BlankSlate.hide(name)
|
68
68
|
result
|
69
69
|
end
|
70
70
|
end
|
@@ -81,7 +81,7 @@ class Object
|
|
81
81
|
define_method :method_added do |name|
|
82
82
|
result = unbound_method.call(name)
|
83
83
|
return result if self != Object
|
84
|
-
BlankSlate.hide(name)
|
84
|
+
Expectations::BlankSlate.hide(name)
|
85
85
|
result
|
86
86
|
end
|
87
87
|
|
@@ -104,7 +104,7 @@ class Module
|
|
104
104
|
result = unbound_method.bind(self).call(mod)
|
105
105
|
return result if mod != Object
|
106
106
|
instance_methods.each do |name|
|
107
|
-
BlankSlate.hide(name)
|
107
|
+
Expectations::BlankSlate.hide(name)
|
108
108
|
end
|
109
109
|
result
|
110
110
|
end
|
data/rakefile.rb
CHANGED
@@ -46,7 +46,7 @@ specification = Gem::Specification.new do |s|
|
|
46
46
|
expect NoMethodError do
|
47
47
|
Object.invalid_method_call
|
48
48
|
end."
|
49
|
-
s.version = "0.2.
|
49
|
+
s.version = "0.2.8"
|
50
50
|
s.author = 'Jay Fields'
|
51
51
|
s.description = "A lightweight unit testing framework. Tests (expectations) will be written as follows
|
52
52
|
expect 2 do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: expectations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jay Fields
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-04-
|
12
|
+
date: 2008-04-29 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|