Sha256: 133218f5bfefe0efee1baead74fed8db9448ce126e3f4e84751345dc730af95a
Contents?: true
Size: 336 Bytes
Versions: 2
Compression:
Stored size: 336 Bytes
Contents
require File.expand_path "../lib/rakismet" RSpec.configure do |config| config.mock_with :rspec end class Class def subclass(base_name, &body) klass = Class.new(self) class_name = "#{self.name}_#{base_name}" instance_eval do const_set(class_name, klass) end klass.instance_eval(&body) klass end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rakismet-1.0.1 | spec/spec_helper.rb |
rakismet-1.0.0 | spec/spec_helper.rb |