Sha256: b3d9fb6e498de34ea9e6b5e68d00a0fc969e38571306b3aae8339af3c864d470
Contents?: true
Size: 1.04 KB
Versions: 9
Compression:
Stored size: 1.04 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
9 entries across 9 versions & 1 rubygems