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.0.0.beta36 spec/helper/set_spec.rb
specinfra-2.0.0.beta35 spec/helper/set_spec.rb
specinfra-2.0.0.beta34 spec/helper/set_spec.rb
specinfra-2.0.0.beta33 spec/helper/set_spec.rb
specinfra-2.0.0.beta32 spec/helper/set_spec.rb
specinfra-2.0.0.beta31 spec/helper/set_spec.rb
specinfra-2.0.0.beta30 spec/helper/set_spec.rb
specinfra-2.0.0.beta29 spec/helper/set_spec.rb
specinfra-2.0.0.beta28 spec/helper/set_spec.rb
specinfra-2.0.0.beta27 spec/helper/set_spec.rb
specinfra-2.0.0.beta26 spec/helper/set_spec.rb
specinfra-2.0.0.beta25 spec/helper/set_spec.rb
specinfra-2.0.0.beta24 spec/helper/set_spec.rb
specinfra-2.0.0.beta23 spec/helper/set_spec.rb
specinfra-2.0.0.beta22 spec/helper/set_spec.rb
specinfra-2.0.0.beta21 spec/helper/set_spec.rb
specinfra-2.0.0.beta20 spec/helper/set_spec.rb
specinfra-2.0.0.beta19 spec/helper/set_spec.rb
specinfra-2.0.0.beta18 spec/helper/set_spec.rb
specinfra-2.0.0.beta17 spec/helper/set_spec.rb