Sha256: d00dad4cf737216ec94291a559dbd2f1d2c094009b6878ad4b98663a834eb5ac
Contents?: true
Size: 660 Bytes
Versions: 2
Compression:
Stored size: 660 Bytes
Contents
require 'rubygems' require 'active_record' $LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '../..', 'lib')) require 'likeable' def build_user! eval %Q{ class User include Likeable::UserMethods def id @time ||= Time.now.to_f.to_s end def self.where(*args) end def friends_ids [] end def self.after_destroy end end } end def unload_user! Object.instance_eval{ remove_const :User } end def reload_user! unload_user! build_user! end build_user! require 'rspec' require 'rspec/autorun'
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
likeable-0.1.1 | spec/spec_helper.rb |
likeable-0.1.0 | spec/spec_helper.rb |