File: cleanup_spec.rb

package info (click to toggle)
ruby-mina 0.3.7-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 444 kB
  • sloc: ruby: 1,630; makefile: 31
file content (16 lines) | stat: -rw-r--r-- 337 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
require 'spec_helper'
require 'command_helper'

describe "Invoking the 'mina deploy:cleanup' command" do
  before :each do
    Dir.chdir root('test_env')
  end

  it "should cleanup old deployments", :ssh => true do
    3.times { mina 'deploy' }

    mina 'deploy:cleanup'

    expect(Dir["deploy/releases/*"].length).to eq(2)
  end
end