Sha256: 02dc7299ad6da56b3ddf44f1ce4787ca53c6e149506c85e0d686be5980037c7a
Contents?: true
Size: 1.05 KB
Versions: 1
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 "-d folder" do before { run_in_sandbox "uuids install -d 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
uuids-5.0.0 | spec/tests/bin/uuids_spec.rb |