Sha256: 836871e3fabe1e5a8cb02f5c8abc9351a1203cf5acc0a25976c81f0a9c54b862
Contents?: true
Size: 748 Bytes
Versions: 4
Compression:
Stored size: 748 Bytes
Contents
require File.dirname(__FILE__) + '/../lib/classy_resources' require 'rubygems' require 'test/unit' require 'context' require 'zebra' require 'mocha' class Test::Unit::TestCase protected def create_post(opts = {}) Post.create!({}.merge(opts)) end def hash_for_comment(opts = {}) {}.merge(opts) end def create_comment(opts = {}) Comment.create!(hash_for_comment(opts)) end def create_user(opts = {}) u = User.new({}.merge(opts)) u.save u end def hash_for_subscription(opts = {}) {:name => "emptiness is depressing"}.merge(opts) end def create_subscription(opts = {}) s = Subscription.new(hash_for_subscription(opts)) s.save s end end
Version data entries
4 entries across 4 versions & 1 rubygems