Sha256: 508c4880ea90c6074ed022af255b0ba342bcb29b454b7e771d455ed20b7f8942

Contents?: true

Size: 819 Bytes

Versions: 11

Compression:

Stored size: 819 Bytes

Contents

require 'spec_helper'
require 'command_helper'

describe "Invoking the 'mina' command outside a project" do
  before :each do
    Dir.chdir root
  end

  describe "without arguments" do
    before :each do
      mina
    end

    it 'should print standard help tasks' do
      stdout.should include('mina help')
      stdout.should include('mina init')
      stdout.should include('mina tasks')
    end

    it "should not print project-specific tasks" do
      stdout.should_not include('mina deploy')
      stdout.should_not include('mina restart')
      stdout.should_not include('mina setup')
    end

    %w[-h --help].each do |arg|
      it "should have the same output as 'mina #{arg}'" do
        @previous_output = stdout
        mina arg
        stdout.should == @previous_output
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
mina-traackr-0.3.0 spec/commands/outside_project_spec.rb
mina-0.3.0 spec/commands/outside_project_spec.rb
mina-0.2.1 spec/commands/outside_project_spec.rb
mina-0.2.0 spec/commands/outside_project_spec.rb
mina-0.2.0.pre2 spec/commands/outside_project_spec.rb
mina-0.1.3.pre1 spec/commands/outside_project_spec.rb
mina-0.1.2 spec/commands/outside_project_spec.rb
mina-0.1.2.pre2 spec/commands/outside_project_spec.rb
mina-0.1.2.pre1 spec/commands/outside_project_spec.rb
mina-0.1.1 spec/commands/outside_project_spec.rb
mina-0.1.0 spec/commands/outside_project_spec.rb