Sha256: e7e14898afab43f4d77e0d8f712cdaa23106a2079d8aa404dc834ff6f295d847
Contents?: true
Size: 509 Bytes
Versions: 1
Compression:
Stored size: 509 Bytes
Contents
require File.join(File.dirname(__FILE__), "..", "lib", "is_bot") require 'activerecord' require 'action_view' require 'yaml' require 'spec' def connect(environment) conf = YAML::load(File.open(File.dirname(__FILE__) + '/database.yml')) ActiveRecord::Base.establish_connection(conf[environment]) end connect('test') load(File.join(File.dirname(__FILE__), "schema.db")) module ViewHelper; class ViewField < ActionView::Base; end end Spec::Runner.configure do |config| config.include(ViewHelper) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
is_bot-0.1.0 | spec/spec_helper.rb |