Sha256: 2b746b30c517054015f0cd5426fc21cc354a39ec5e07aa0aaa217bcb0dcab502
Contents?: true
Size: 643 Bytes
Versions: 1
Compression:
Stored size: 643 Bytes
Contents
require File.join(File.dirname(__FILE__), '..', '..', 'spec_helper') describe Yad::Db::Rails do it "should build the create db command" do cmd = Yad::Db::Rails.build_create_db_command('path/to/release', :app_env => 'production', :rake_cmd => 'rake') cmd.should eql("cd path/to/release; rake RAILS_ENV=production db:create") end it "should build the migrate db command" do cmd = Yad::Db::Rails.build_migrate_db_command('path/to/release', :app_env => 'production', :rake_cmd => 'rake', :migrate_args => 'MIGRATE=ARGS') cmd.should eql("cd path/to/release; rake RAILS_ENV=production db:migrate MIGRATE=ARGS") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
yad-0.0.4 | spec/yad/db/rails_spec.rb |