Sha256: 990bded197d7ca1491650ba19d8d1d8cc52d35a0001855250b79e4b7c5368fe6
Contents?: true
Size: 455 Bytes
Versions: 1
Compression:
Stored size: 455 Bytes
Contents
$:.unshift File.join(File.dirname(__FILE__), *%w[.. lib]) require "her" require "fakeweb" require "mocha" module Helpers end RSpec.configure do |c| c.include Helpers end class Hash def to_json; MultiJson.dump(self); end end class Array def to_json; MultiJson.dump(self); end end def spawn_model(klass, attrs={}) Object.instance_eval { remove_const klass } if Object.const_defined?(klass) eval "class #{klass}; include Her::Model; end" end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
her-0.2 | spec/spec_helper.rb |