Sha256: 9ff85f3f5556f5e958e2bd1434d0f08c2fb006be7c7c1dd082dd8178c457e5c5
Contents?: true
Size: 1.33 KB
Versions: 1
Compression:
Stored size: 1.33 KB
Contents
# encoding: utf-8 require "spec_helper_dev" describe "$ uuids", :sandbox do let(:files_in_sandbox) { Dir["#{ sandbox }/**/*.*"] } describe "install" do context "without options" do let!(:dir) { "#{ sandbox }/db/migrate" } before { run_in_sandbox "uuids install" } it "copies migrations to 'db/migrate'" do migrations.each { |file| expect(dir).to have_migration_from file } end it "doesn't add other files" do expect(files_in_sandbox.count).to eq migrations.count end end context "-d" do let!(:dir) { "#{ sandbox }/spec/dummy/db/migrate" } before { run_in_sandbox "uuids install -d" } it "copies migrations to 'spec/dummy/db/migrate'" do migrations.each { |file| expect(dir).to have_migration_from file } end it "doesn't add other files" do expect(files_in_sandbox.count).to eq migrations.count end end context "-f folder" do let!(:dir) { "#{ sandbox }/folder/db/migrate" } before { run_in_sandbox "uuids install -f folder" } it "copies migrations to 'some_path/db/migrate'" do migrations.each { |file| expect(dir).to have_migration_from file } end it "doesn't add other files" do expect(files_in_sandbox.count).to eq migrations.count end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
uuids-1.4.1 | spec/bin/uuids_spec.rb |