Skip to content

Commit

Permalink
fix tests again
Browse files Browse the repository at this point in the history
  • Loading branch information
ckoegel committed Jul 25, 2023
1 parent 3b1c40b commit 0cba003
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 56 deletions.
2 changes: 1 addition & 1 deletion spec/configuration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
end

it 'should have the default value' do
expect(config.base_url).to eq("http://localhost")
expect(config.base_url).to eq('http://localhost')
end

it 'returns default value when invalid operation is passed' do
Expand Down
13 changes: 0 additions & 13 deletions spec/models/call_state_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,6 @@
end
end

describe '#list_invalid_properties' do
it 'returns list of invalid properties' do
expect(call_state_default.list_invalid_properties).to eq([])
end
end

describe '#hash' do
it 'returns a hash code according to attributes' do
expect(call_state_default.hash).to be_instance_of(Integer)
Expand All @@ -136,13 +130,6 @@
end
end

describe '#valid?' do
it 'validates instances with and without attributes set' do
expect(call_state_default).to be_valid
expect(call_state_values).to be_valid
end
end

describe '#eq? #==' do
it 'returns true/false when comparing objects' do
expect(call_state_default.eql?(Bandwidth::CallState.new)).to be true
Expand Down
15 changes: 1 addition & 14 deletions spec/models/deferred_result_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,7 @@
expect(deferred_result_from_hash.set_or_expired).to be true
end
end

describe '#list_invalid_properties' do
it 'returns list of invalid properties' do
expect(deferred_result_default.list_invalid_properties).to eq([])
end
end


describe '#hash' do
it 'returns a hash code according to attributes' do
expect(deferred_result_default.hash).to be_instance_of(Integer)
Expand All @@ -62,13 +56,6 @@
end
end

describe '#valid?' do
it 'validates instances with and without attributes set' do
expect(deferred_result_default).to be_valid
expect(deferred_result_values).to be_valid
end
end

describe '#eq? #==' do
it 'returns true/false when comparing objects' do
expect(deferred_result_default.eql?(Bandwidth::DeferredResult.new)).to be true
Expand Down
13 changes: 0 additions & 13 deletions spec/models/message_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,6 @@
end
end

describe '#list_invalid_properties' do
it 'returns list of invalid properties' do
expect(message_default.list_invalid_properties).to eq([])
end
end

describe '#hash' do
it 'returns a hash code according to attributes' do
expect(message_default.hash).to be_instance_of(Integer)
Expand All @@ -115,13 +109,6 @@
end
end

describe '#valid?' do
it 'validates instances with and without attributes set' do
expect(message_default).to be_valid
expect(message_values).to be_valid
end
end

describe '#eq? #==' do
it 'returns true/false when comparing objects' do
expect(message_default.eql?(Bandwidth::Message.new)).to be true
Expand Down
22 changes: 7 additions & 15 deletions spec/models/verify_code_request_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Unit tests for Bandwidth::VerifyCodeRequest
describe Bandwidth::VerifyCodeRequest do
let(:verify_code_request_default) { Bandwidth::VerifyCodeRequest.new }
let(:verify_code_request_values) { Bandwidth::VerifyCodeRequest.new({
to: '+19195551234',
scope: '2FA',
Expand Down Expand Up @@ -50,12 +49,6 @@
end
end

describe '#list_invalid_properties' do
it 'returns list of invalid properties' do
expect(verify_code_request_values.list_invalid_properties).to eq([])
end
end

describe '#hash' do
it 'returns a hash code according to attributes' do
expect(verify_code_request_values.hash).to be_instance_of(Integer)
Expand All @@ -68,16 +61,15 @@
end
end

describe '#valid?' do
it 'validates instances with and without attributes set' do
expect(verify_code_request_values).to be_valid
end
end

describe '#eq? #==' do
it 'returns true/false when comparing objects' do
expect(verify_code_request_default.eql?(Bandwidth::VerifyCodeRequest.new)).to be true
expect(verify_code_request_default.eql?(verify_code_request_values)).to be false
verify_code_request_equal = Bandwidth::VerifyCodeRequest.new({
to: '+19195551234',
scope: '2FA',
expiration_time_in_minutes: 1.0,
code: '123456'
})
expect(verify_code_request_equal.eql?(verify_code_request_values)).to be true
end
end

Expand Down

0 comments on commit 0cba003

Please sign in to comment.