Sha256: fc6b484e53ff62b5994b4ba3fb8f994244bbd948bccb416629394f5a774546b9

Contents?: true

Size: 371 Bytes

Versions: 1

Compression:

Stored size: 371 Bytes

Contents

require 'rspec'

require File.expand_path(File.join('../..', 'lib/dino'), __FILE__)

# Nice little helper module to redefine constants quietly.
module Constants
  def self.redefine(const, value, opts={})
    opts = {:on => self.class}.merge(opts)
    opts[:on].send(:remove_const, const) if self.class.const_defined?(const)
    opts[:on].const_set(const, value)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dino-0.11.2 spec/spec_helper.rb