search for: plugin_spec_dir

Displaying 1 result from an estimated 1 matches for "plugin_spec_dir".

2007 Apr 25
9
Running specs for a plugin - undefined method ''define'' for object
.../spec_helper'' define "Widget" do fixtures :widgets it "should find all records" do Widget.count.should==4 end end File contents of: vendor/plugins/audit_fu/spec/spec_helper.rb require File.dirname(__FILE__) + ''/../../../../spec/spec_helper'' plugin_spec_dir = File.dirname(__FILE__) ActiveRecord::Base.logger = Logger.new(plugin_spec_dir + "/debug.log") databases = YAML::load(IO.read(plugin_spec_dir + "/db/database.yml")) ActiveRecord::Base.establish_connection(databases[ENV["DB"] || "sqlite3"]) load(File.join(plu...