spec/spec_helper.rb in exposure-0.0.4 vs spec/spec_helper.rb in exposure-0.0.5

- old
+ new

@@ -27,11 +27,11 @@ $:.unshift(File.dirname(__FILE__) + '/../lib') require 'exposure' ActiveRecord::Base.logger = Logger.new(STDOUT) if ENV['DEBUG'] ActionController::Base.logger = Logger.new(STDOUT) if ENV['DEBUG'] -ActionController::Base.send :include, Exposure +# ActionController::Base.send :include, Exposure ActionController::Base.view_paths=(File.dirname(__FILE__) + '/fixtures') ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :database => ":memory:") ActiveRecord::Migration.verbose = false @@ -52,10 +52,16 @@ t.column :title, :string t.column :body, :text t.column :created_at, :datetime t.column :updated_at, :datetime end + create_table :ship_types do |t| + t.column :title, :string + t.column :body, :text + t.column :created_at, :datetime + t.column :updated_at, :datetime + end end class Pirate < ActiveRecord::Base has_many :ships validates_length_of :title, :within => 2..100 @@ -66,6 +72,9 @@ class Ship < ActiveRecord::Base belongs_to :pirate def validate end validates_associated :pirate +end + +class ShipType < ActiveRecord::Base end \ No newline at end of file