Sha256: 77d0e46cb3bc9aef0992d105860a70a3cc7ae540a61c9eec48e2c2796d40cae6

Contents?: true

Size: 391 Bytes

Versions: 18

Compression:

Stored size: 391 Bytes

Contents

require "spec_helper"

describe Ruboty::Commands::Run do
  describe "#call" do
    let(:command) do
      Ruboty::CommandBuilder.new(arguments).build
    end

    let(:call) do
      command.call
    end

    let(:arguments) do
      []
    end

    it "creates an adapter and calls .run to it" do
      Ruboty::Adapters::Shell.any_instance.should_receive(:run)
      call
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
ruboty-1.2.2 spec/ruboty/commands/run_spec.rb
ruboty-1.2.1 spec/ruboty/commands/run_spec.rb
ruboty-1.2.0 spec/ruboty/commands/run_spec.rb
ruboty-1.1.9 spec/ruboty/commands/run_spec.rb
ruboty-1.1.8 spec/ruboty/commands/run_spec.rb
ruboty-1.1.7 spec/ruboty/commands/run_spec.rb
ruboty-1.1.6 spec/ruboty/commands/run_spec.rb
ruboty-1.1.5 spec/ruboty/commands/run_spec.rb
ruboty-1.1.4 spec/ruboty/commands/run_spec.rb
ruboty-1.1.3 spec/ruboty/commands/run_spec.rb
ruboty-1.1.2 spec/ruboty/commands/run_spec.rb
ruboty-1.1.1 spec/ruboty/commands/run_spec.rb
ruboty-1.1.0 spec/ruboty/commands/run_spec.rb
ruboty-1.0.4 spec/ruboty/commands/run_spec.rb
ruboty-1.0.3 spec/ruboty/commands/run_spec.rb
ruboty-1.0.2 spec/ruboty/commands/run_spec.rb
ruboty-1.0.1 spec/ruboty/commands/run_spec.rb
ruboty-1.0.0 spec/ruboty/commands/run_spec.rb