Sha256: bbf93dcef7be6ede4b0d2fc897d4731d15784bd1ed83ad48da5c6240604a24b9

Contents?: true

Size: 476 Bytes

Versions: 393

Compression:

Stored size: 476 Bytes

Contents

require 'spec_helper'

describe 'set method set value to Specinfra.configuration' do
  it 'set method handle string value correctly' do
    set :host, 'localhost'
    expect(Specinfra.configuration.host).to eq 'localhost'
  end

  it 'set method handle hash value correctly' do
    set :ssh_options, :password => 'password', :port => 2222
    ssh_options = { :password => 'password', :port => 2222 }
    expect(Specinfra.configuration.ssh_options).to eq ssh_options
  end
end

Version data entries

393 entries across 393 versions & 3 rubygems

Version Path
specinfra-2.82.5 spec/helper/set_spec.rb
specinfra-2.82.4 spec/helper/set_spec.rb
specinfra-2.82.3 spec/helper/set_spec.rb
specinfra-2.82.2 spec/helper/set_spec.rb
specinfra-2.82.1 spec/helper/set_spec.rb
specinfra-2.82.0 spec/helper/set_spec.rb
specinfra-2.81.0 spec/helper/set_spec.rb
specinfra-2.80.0 spec/helper/set_spec.rb
specinfra-2.79.0 spec/helper/set_spec.rb
specinfra-2.78.2 spec/helper/set_spec.rb
specinfra-2.78.1 spec/helper/set_spec.rb
specinfra-2.78.0 spec/helper/set_spec.rb
specinfra-2.77.3 spec/helper/set_spec.rb
specinfra-2.77.2 spec/helper/set_spec.rb
specinfra-2.77.1 spec/helper/set_spec.rb
specinfra-2.77.0 spec/helper/set_spec.rb
specinfra-2.76.9 spec/helper/set_spec.rb
specinfra-2.76.8 spec/helper/set_spec.rb
specinfra-2.76.7 spec/helper/set_spec.rb
specinfra-2.76.6 spec/helper/set_spec.rb