Sha256: d87e16fac791a417578b37f63868521d708880f3e4efdb343f538943b9fff714
Contents?: true
Size: 660 Bytes
Versions: 18
Compression:
Stored size: 660 Bytes
Contents
# This file is copied to ~/spec when you run 'ruby script/generate rspec' # from the project root directory. ENV["RAILS_ENV"] ||= "test" require File.expand_path(File.join(File.dirname(__FILE__), "../../../../config/environment")) require 'spec/rails' # APP SETUP # Models class User < ActiveRecord::Base end class FastCar < ActiveRecord::Base end class Event < ActiveRecord::Base class Create < Event end class Update < Event end end # Factories require 'factory_girl' Factory.define :user do |u| end Factory.define :super_admin, :class => User do |u| end Factory.define :fast_car do |c| end # Machinist require 'machinist/active_record'
Version data entries
18 entries across 18 versions & 2 rubygems