Sha256: b65402c1aaec3503c695dee9a451069c40a78e5f546ff4e90ed3b9e38511d2a9

Contents?: true

Size: 323 Bytes

Versions: 17

Compression:

Stored size: 323 Bytes

Contents

require 'spec_helper'

describe Ridley::SSH::Worker do
  describe "ClassMethods" do
    subject { described_class }

    describe "::new" do
      it { subject.new(sudo: true).sudo.should be_true }
      it { subject.new(sudo: false).sudo.should be_false }
      it { subject.new().sudo.should be_false }
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
ridley-0.9.1 spec/unit/ridley/ssh/worker_spec.rb
ridley-0.9.0 spec/unit/ridley/ssh/worker_spec.rb
ridley-0.8.6 spec/unit/ridley/ssh/worker_spec.rb
ridley-0.8.5 spec/unit/ridley/ssh/worker_spec.rb
ridley-0.8.3 spec/unit/ridley/ssh/worker_spec.rb
ridley-0.8.2 spec/unit/ridley/ssh/worker_spec.rb
ridley-0.8.1 spec/unit/ridley/ssh/worker_spec.rb
ridley-0.8.0 spec/unit/ridley/ssh/worker_spec.rb
ridley-0.7.0 spec/unit/ridley/ssh/worker_spec.rb
ridley-0.7.0.rc4 spec/unit/ridley/ssh/worker_spec.rb
ridley-0.7.0.rc3 spec/unit/ridley/ssh/worker_spec.rb
ridley-0.7.0.rc1 spec/unit/ridley/ssh/worker_spec.rb
ridley-0.7.0.beta spec/unit/ridley/ssh/worker_spec.rb
ridley-0.6.3 spec/unit/ridley/ssh/worker_spec.rb
ridley-0.6.2 spec/unit/ridley/ssh/worker_spec.rb
ridley-0.6.1 spec/unit/ridley/ssh/worker_spec.rb
ridley-0.6.0 spec/unit/ridley/ssh/worker_spec.rb