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-7.6.0 lib/extensions/mspec/mspec/matchers/have_class_variable.rb
rhodes-7.5.1 lib/extensions/mspec/mspec/matchers/have_class_variable.rb
rhodes-7.4.1 lib/extensions/mspec/mspec/matchers/have_class_variable.rb
rhodes-7.1.17 lib/extensions/mspec/mspec/matchers/have_class_variable.rb
rhodes-6.2.0 lib/extensions/mspec/mspec/matchers/have_class_variable.rb
rhodes-6.0.11 lib/extensions/mspec/mspec/matchers/have_class_variable.rb
rhodes-5.5.18 lib/extensions/mspec/mspec/matchers/have_class_variable.rb
rhodes-5.5.17 lib/extensions/mspec/mspec/matchers/have_class_variable.rb
rhodes-5.5.15 lib/extensions/mspec/mspec/matchers/have_class_variable.rb
rhodes-5.5.0.22 lib/extensions/mspec/mspec/matchers/have_class_variable.rb
rhodes-5.5.2 lib/extensions/mspec/mspec/matchers/have_class_variable.rb
rhodes-5.5.0.7 lib/extensions/mspec/mspec/matchers/have_class_variable.rb
rhodes-5.5.0.3 lib/extensions/mspec/mspec/matchers/have_class_variable.rb
rhodes-5.5.0 lib/extensions/mspec/mspec/matchers/have_class_variable.rb
tauplatform-1.0.3 lib/extensions/mspec/mspec/matchers/have_class_variable.rb
mspec-1.9.1 lib/mspec/matchers/have_class_variable.rb
mspec-1.9.0 lib/mspec/matchers/have_class_variable.rb
tauplatform-1.0.2 lib/extensions/mspec/mspec/matchers/have_class_variable.rb
tauplatform-1.0.1 lib/extensions/mspec/mspec/matchers/have_class_variable.rb
mspec-1.8.0 lib/mspec/matchers/have_class_variable.rb