Sha256: 0e6190424f0fd31e721d735f9eff3a38af67288720ede18f0690444eabf41af9

Contents?: true

Size: 492 Bytes

Versions: 11

Compression:

Stored size: 492 Bytes

Contents

require 'spec_helper'

describe 'backend_for(:type) returns correct backend object' do
  before do
    RSpec.configure do |c|
      c.ssh = double(:ssh, :options => { :user => 'root' })
    end
  end

  it 'backend_for(:exec) returns Specinfra::Backend::Exec' do
    expect(backend_for(:exec)).to be_an_instance_of Specinfra::Backend::Exec
  end

  it 'backend_for(:ssh) returns Specinfra::Backend::Ssh' do
    expect(backend_for(:ssh)).to be_an_instance_of Specinfra::Backend::Ssh
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
specinfra-2.0.0.beta14 spec/helper/backend_spec.rb
specinfra-2.0.0.beta13 spec/helper/backend_spec.rb
specinfra-2.0.0.beta12 spec/helper/backend_spec.rb
specinfra-2.0.0.beta11 spec/helper/backend_spec.rb
specinfra-2.0.0.beta10 spec/helper/backend_spec.rb
specinfra-2.0.0.beta9 spec/helper/backend_spec.rb
specinfra-2.0.0.beta8 spec/helper/backend_spec.rb
specinfra-2.0.0.beta7 spec/helper/backend_spec.rb
specinfra-2.0.0.beta6 spec/helper/backend_spec.rb
specinfra-2.0.0.beta5 spec/helper/backend_spec.rb
specinfra-2.0.0.beta4 spec/helper/backend_spec.rb