Sha256: cf4951ba0db8fbcfa646f29730254dbd87f7c2471f9be6b09002bf2c2b68d7ea

Contents?: true

Size: 515 Bytes

Versions: 8

Compression:

Stored size: 515 Bytes

Contents

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

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
mina-0.3.8 spec/commands/custom_config_spec.rb
mina-0.3.7 spec/commands/custom_config_spec.rb
mina-0.3.6 spec/commands/custom_config_spec.rb
mina-0.3.4 spec/commands/custom_config_spec.rb
mina-0.3.3 spec/commands/custom_config_spec.rb
colorful-mina-0.3.1 spec/commands/custom_config_spec.rb
mina-0.3.2 spec/commands/custom_config_spec.rb
mina-0.3.1 spec/commands/custom_config_spec.rb