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-3.3.2.beta.3 lib/extensions/mspec/mspec/matchers/have_constant.rb
rhodes-3.3.2.beta.2 lib/extensions/mspec/mspec/matchers/have_constant.rb
rhodes-3.3.2.beta.1 lib/extensions/mspec/mspec/matchers/have_constant.rb
rhodes-3.3.1 lib/extensions/mspec/mspec/matchers/have_constant.rb
rhodes-3.3.0 lib/extensions/mspec/mspec/matchers/have_constant.rb
rhodes-3.3.0.beta.3 lib/extensions/mspec/mspec/matchers/have_constant.rb
rhodes-3.3.0.beta.2 lib/extensions/mspec/mspec/matchers/have_constant.rb
rhodes-3.3.0.beta.1 lib/extensions/mspec/mspec/matchers/have_constant.rb
rhodes-3.2.3 lib/extensions/mspec/mspec/matchers/have_constant.rb
rhodes-3.2.2 lib/extensions/mspec/mspec/matchers/have_constant.rb
rhodes-3.2.2.beta lib/extensions/mspec/mspec/matchers/have_constant.rb
rhodes-3.2.1 lib/extensions/mspec/mspec/matchers/have_constant.rb
rhodes-3.2.0 lib/extensions/mspec/mspec/matchers/have_constant.rb
rhodes-3.2.0.beta.9 lib/extensions/mspec/mspec/matchers/have_constant.rb
rhodes-3.2.0.beta.8 lib/extensions/mspec/mspec/matchers/have_constant.rb
rhodes-3.2.0.beta.7 lib/extensions/mspec/mspec/matchers/have_constant.rb
rhodes-3.2.0.beta.6 lib/extensions/mspec/mspec/matchers/have_constant.rb
rhodes-3.2.0.beta.5 lib/extensions/mspec/mspec/matchers/have_constant.rb
rhodes-3.2.0.beta.4 lib/extensions/mspec/mspec/matchers/have_constant.rb
rhodes-3.2.0.beta.2 lib/extensions/mspec/mspec/matchers/have_constant.rb