Sha256: 9ce98a1f17323a30dbc41f538585b3591855b2e0a2ac7dca144dbb4bdf19c84e
Contents?: true
Size: 644 Bytes
Versions: 3
Compression:
Stored size: 644 Bytes
Contents
$: << File.expand_path('..', __FILE__) require 'ridgepole' require 'string_ext' RSpec.configure do |config| config.before(:each) do restore_database end end def restore_database sql_file = File.expand_path('../ridgepole_test_database.sql', __FILE__) system("mysql -uroot < #{sql_file}") end def restore_tables sql_file = File.expand_path('../ridgepole_test_tables.sql', __FILE__) system("mysql -uroot < #{sql_file}") end def client(options = {}, config = {}) config = { adapter: 'mysql2', database: 'ridgepole_test', }.merge(config) options = { }.merge(options) Ridgepole::Client.new(config, options) end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ridgepole-0.1.2 | spec/spec_helper.rb |
ridgepole-0.1.1 | spec/spec_helper.rb |
ridgepole-0.1.0 | spec/spec_helper.rb |