Sha256: 5e861d39aee375c9e655ce144de80d6d2686075560365cbc3a049f48f5745d2c

Contents?: true

Size: 249 Bytes

Versions: 67

Compression:

Stored size: 249 Bytes

Contents

require 'mspec/matchers/variable'

class HaveConstantMatcher < VariableMatcher
  self.variables_method = :constants
  self.description      = 'constant'
end

class Object
  def have_constant(variable)
    HaveConstantMatcher.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_constant.rb
rhodes-7.5.1 lib/extensions/mspec/mspec/matchers/have_constant.rb
rhodes-7.4.1 lib/extensions/mspec/mspec/matchers/have_constant.rb
rhodes-7.1.17 lib/extensions/mspec/mspec/matchers/have_constant.rb
rhodes-6.2.0 lib/extensions/mspec/mspec/matchers/have_constant.rb
rhodes-6.0.11 lib/extensions/mspec/mspec/matchers/have_constant.rb
rhodes-5.5.18 lib/extensions/mspec/mspec/matchers/have_constant.rb
rhodes-5.5.17 lib/extensions/mspec/mspec/matchers/have_constant.rb
rhodes-5.5.15 lib/extensions/mspec/mspec/matchers/have_constant.rb
rhodes-5.5.0.22 lib/extensions/mspec/mspec/matchers/have_constant.rb
rhodes-5.5.2 lib/extensions/mspec/mspec/matchers/have_constant.rb
rhodes-5.5.0.7 lib/extensions/mspec/mspec/matchers/have_constant.rb
rhodes-5.5.0.3 lib/extensions/mspec/mspec/matchers/have_constant.rb
rhodes-5.5.0 lib/extensions/mspec/mspec/matchers/have_constant.rb
tauplatform-1.0.3 lib/extensions/mspec/mspec/matchers/have_constant.rb
mspec-1.9.1 lib/mspec/matchers/have_constant.rb
mspec-1.9.0 lib/mspec/matchers/have_constant.rb
tauplatform-1.0.2 lib/extensions/mspec/mspec/matchers/have_constant.rb
tauplatform-1.0.1 lib/extensions/mspec/mspec/matchers/have_constant.rb
mspec-1.8.0 lib/mspec/matchers/have_constant.rb