spec/winrm_options_spec.rb in winrm-1.3.0.dev.3 vs spec/winrm_options_spec.rb in winrm-1.3.0

- old
+ new

@@ -1,6 +1,7 @@ -describe 'WinRM options', :unit => true do +# encoding: UTF-8 +describe 'WinRM options', unit: true do let(:subject) { WinRM::WinRMWebService.new('http://localhost:55985/wsman', :plaintext) } context 'when operations timeout is set to 60' do before(:each) { subject.set_timeout(60) } describe '#receive_timeout' do @@ -30,14 +31,14 @@ end end end context 'when max_env_size is set to 614400' do - before(:each) { subject.max_env_size(614400) } + before(:each) { subject.max_env_size(614_400) } describe '@max_env_sz' do it 'is set to 614400' do - expect(subject.instance_variable_get('@max_env_sz')).to eq(614400) + expect(subject.instance_variable_get('@max_env_sz')).to eq(614_400) end end end context 'when locale is set to en-CA' do @@ -66,10 +67,10 @@ expect(subject.instance_variable_get('@locale')).to eq('en-US') end end describe '@max_env_sz' do it 'should be 153600' do - expect(subject.instance_variable_get('@max_env_sz')).to eq(153600) + expect(subject.instance_variable_get('@max_env_sz')).to eq(153_600) end end - end + end end