Sha256: 6b13a4aa46822c87b0ff3780c6f324f3b162b6f02049421b1ca574f825016fb8
Contents?: true
Size: 1.05 KB
Versions: 5
Compression:
Stored size: 1.05 KB
Contents
# encoding: utf-8 require "spec_helper_dev" describe "$ uuids", :sandbox do describe "install" do let!(:root) { File.expand_path("../../../..", __FILE__) } let!(:migrations) { Dir["#{ root }/db/migrate/*.rb"] } describe "without options" do before { run_in_sandbox "uuids install" } it "copies migrations to `db/migrate`" do migrations.each do |migration| expect(migration).to have_copy_in_sandbox "db/migrate" end end end describe "-d" do before { run_in_sandbox "uuids install -d" } it "copies migrations to `spec/dummy/db/migrate`" do migrations.each do |migration| expect(migration).to have_copy_in_sandbox "spec/dummy/db/migrate" end end end describe "-f folder" do before { run_in_sandbox "uuids install -f folder" } it "copies migrations to `folder/db/migrate`" do migrations.each do |migration| expect(migration).to have_copy_in_sandbox "folder/db/migrate" end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems