Sha256: 4b0352fbc81ef3f401cd0467a1fddb4e8be7b920afab16e530f9428739bf4ff7
Contents?: true
Size: 1.13 KB
Versions: 1
Compression:
Stored size: 1.13 KB
Contents
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) ENV['RAILS_ENV'] ||= 'development' require 'bundler/setup' require 'rails/all' require 'rails/generators' require 'rails/generators/test_case' require "green_monkey" class TestApp < Rails::Application config.root = File.dirname(__FILE__) config.active_support.deprecation :log #config.logger = Logger.new(STDOUT) config.log_level = :error end Rails.application = TestApp module Rails def self.root @root ||= File.expand_path("../../tmp/rails", __FILE__) end end Rails.application.config.root = Rails.root TestApp.initialize! ActiveRecord::Schema.define(:version => 20111023054000) do create_table "posts" do |t| t.string "title" t.text "body" t.string "link" t.datetime "published_at" t.datetime "created_at" t.datetime "updated_at" end create_table "users" do |t| t.string "name" t.string "location" t.string "github" t.string "password" end end class Post < ActiveRecord::Base html_schema_type :BlogPosting end class User < ActiveRecord::Base html_schema_type "http://example.com/User" end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
green_monkey-0.1 | spec/spec_helper.rb |