blob: 45cd0b5ae1a9043a7e267a8a166d365cebff2547 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
require 'mspec/matchers/variable'
class HaveClassVariableMatcher < VariableMatcher
self.variables_method = :class_variables
self.description = 'class variable'
end
class Object
def have_class_variable(variable)
HaveClassVariableMatcher.new(variable)
end
end
|