Sha256: f742e6dca2d74a604290d8282d20ad12bc213c6bf16603226e20a5176cc3ccaf

Contents?: true

Size: 276 Bytes

Versions: 67

Compression:

Stored size: 276 Bytes

Contents

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

Version data entries

67 entries across 67 versions & 3 rubygems

Version Path
rhodes-3.2.0.beta.1 lib/extensions/mspec/mspec/matchers/have_class_variable.rb
mspec-1.5.17 lib/mspec/matchers/have_class_variable.rb
mspec-1.5.16 lib/mspec/matchers/have_class_variable.rb
mspec-1.5.15 lib/mspec/matchers/have_class_variable.rb
mspec-1.5.14 lib/mspec/matchers/have_class_variable.rb
mspec-1.5.13 lib/mspec/matchers/have_class_variable.rb
mspec-1.5.12 lib/mspec/matchers/have_class_variable.rb