File: custom_config_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 (20 lines) | stat: -rw-r--r-- 515 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require 'spec_helper'
require 'command_helper'

describe "Invoking the 'mina' command in a project without a deploy.rb" do
  before :each do
    Dir.chdir root('spec/fixtures/custom_file_env')
    FileUtils.rm_rf 'deploy'
  end

  it 'should fail' do
    run_command 'deploy', '--simulate'
    expect(exitstatus).to be > 0
  end

  it 'should pass if you provide a new rakefile' do
    mina 'deploy', '--simulate', '-f', 'custom_deploy.rb'
    expect(stdout).to include 'Creating a temporary build path'
  end
end