Sha256: 007fe28a014e0bbcd0a8c4bf75d3b4d7ceee26b53abba284d590ad985c6fe5fe

Contents?: true

Size: 390 Bytes

Versions: 22

Compression:

Stored size: 390 Bytes

Contents

require "spec_helper"

describe ORS::Commands::Console do

  context "#run" do
    it "should set pretending to true and call exec" do
      stub(subject).name {'abc/growhealthy'}
      stub(subject).environment {'production'}
      mock(subject).execute_command(is_a(String), is_a(String), is_a(String), is_a(String), is_a(Hash)).returns("command")
      subject.execute
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
ors-0.2.4 spec/ors/commands/console_spec.rb
ors-0.2.3 spec/ors/commands/console_spec.rb
ors-0.2.2 spec/ors/commands/console_spec.rb
ors-0.2.1 spec/ors/commands/console_spec.rb
ors-0.2.0 spec/ors/commands/console_spec.rb
ors-0.1.8 spec/ors/commands/console_spec.rb
ors-0.1.7 spec/ors/commands/console_spec.rb
ors-0.1.5 spec/ors/commands/console_spec.rb
ors-0.1.4 spec/ors/commands/console_spec.rb
ors-0.1.3 spec/ors/commands/console_spec.rb
ors-0.1.2 spec/ors/commands/console_spec.rb
ors-0.1.1 spec/ors/commands/console_spec.rb
ors-0.1.0 spec/ors/commands/console_spec.rb
ors-0.0.9 spec/ors/commands/console_spec.rb
ors-0.0.8 spec/ors/commands/console_spec.rb
ors-0.0.7 spec/ors/commands/console_spec.rb
ors-0.0.6 spec/ors/commands/console_spec.rb
ors-0.0.5 spec/ors/commands/console_spec.rb
ors-0.0.4 spec/ors/commands/console_spec.rb
ors-0.0.3 spec/ors/commands/console_spec.rb