Skip to content

Commit

Permalink
Fix typos (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
tagliala authored Jun 3, 2024
1 parent cb17ecb commit 2981bb9
Showing 1 changed file with 33 additions and 33 deletions.
66 changes: 33 additions & 33 deletions spec/lib/sharepoint/client_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@

context 'with authentication' do
[{ value: 'ntlm', name: 'ntlm' },
{ value: 'token', name: 'token' }].each do |ocurrence|
it "does not raise authentication configuration error for #{ocurrence[:name]} authentication" do
{ value: 'token', name: 'token' }].each do |occurrence|
it "does not raise authentication configuration error for #{occurrence[:name]} authentication" do
correct_config = config
correct_config[:authentication] = ocurrence[:value]
correct_config[:authentication] = occurrence[:value]

expect do
described_class.new(correct_config)
Expand Down Expand Up @@ -76,10 +76,10 @@
context 'with bad authentication' do
[{ value: nil, name: 'nil' },
{ value: '', name: 'blank' },
{ value: 344, name: 344 }].each do |ocurrence|
it "raises authentication configuration error for #{ocurrence[:name]} authentication" do
{ value: 344, name: 344 }].each do |occurrence|
it "raises authentication configuration error for #{occurrence[:name]} authentication" do
wrong_config = config
wrong_config[:authentication] = ocurrence[:value]
wrong_config[:authentication] = occurrence[:value]

expect do
described_class.new(wrong_config)
Expand All @@ -94,10 +94,10 @@
context 'with bad client_id' do
[{ value: nil, name: 'nil' },
{ value: '', name: 'blank' },
{ value: 344, name: 344 }].each do |ocurrence|
it "raises client_id configuration error for #{ocurrence[:name]} client_id" do
{ value: 344, name: 344 }].each do |occurrence|
it "raises client_id configuration error for #{occurrence[:name]} client_id" do
wrong_config = config
wrong_config[:client_id] = ocurrence[:value]
wrong_config[:client_id] = occurrence[:value]

expect do
described_class.new(wrong_config)
Expand All @@ -109,10 +109,10 @@
context 'with bad client_secret' do
[{ value: nil, name: 'nil' },
{ value: '', name: 'blank' },
{ value: 344, name: 344 }].each do |ocurrence|
it "raises client_secret configuration error for #{ocurrence[:name]} client_secret" do
{ value: 344, name: 344 }].each do |occurrence|
it "raises client_secret configuration error for #{occurrence[:name]} client_secret" do
wrong_config = config
wrong_config[:client_secret] = ocurrence[:value]
wrong_config[:client_secret] = occurrence[:value]

expect do
described_class.new(wrong_config)
Expand All @@ -124,10 +124,10 @@
context 'with bad tenant_id' do
[{ value: nil, name: 'nil' },
{ value: '', name: 'blank' },
{ value: 344, name: 344 }].each do |ocurrence|
it "raises tenant_id configuration error for #{ocurrence[:name]} tenant_id" do
{ value: 344, name: 344 }].each do |occurrence|
it "raises tenant_id configuration error for #{occurrence[:name]} tenant_id" do
wrong_config = config
wrong_config[:tenant_id] = ocurrence[:value]
wrong_config[:tenant_id] = occurrence[:value]

expect do
described_class.new(wrong_config)
Expand All @@ -139,10 +139,10 @@
context 'with bad cert_name' do
[{ value: nil, name: 'nil' },
{ value: '', name: 'blank' },
{ value: 344, name: 344 }].each do |ocurrence|
it "raises cert_name configuration error for #{ocurrence[:name]} cert_name" do
{ value: 344, name: 344 }].each do |occurrence|
it "raises cert_name configuration error for #{occurrence[:name]} cert_name" do
wrong_config = config
wrong_config[:cert_name] = ocurrence[:value]
wrong_config[:cert_name] = occurrence[:value]

expect do
described_class.new(wrong_config)
Expand All @@ -154,10 +154,10 @@
context 'with bad auth_scope' do
[{ value: nil, name: 'nil' },
{ value: '', name: 'blank' },
{ value: 344, name: 344 }].each do |ocurrence|
it "raises auth_scope configuration error for #{ocurrence[:name]} auth_scope" do
{ value: 344, name: 344 }].each do |occurrence|
it "raises auth_scope configuration error for #{occurrence[:name]} auth_scope" do
wrong_config = config
wrong_config[:auth_scope] = ocurrence[:value]
wrong_config[:auth_scope] = occurrence[:value]

expect do
described_class.new(wrong_config)
Expand All @@ -168,10 +168,10 @@

it 'with bad auth_scope uri format' do
skip 'Uri is not formatted'
[{ value: 'ftp://www.test.com', name: 'invalid auth_scope' }].each do |ocurrence|
it "raises auth_scope configuration error for #{ocurrence[:name]} auth_scope" do
[{ value: 'ftp://www.test.com', name: 'invalid auth_scope' }].each do |occurrence|
it "raises auth_scope configuration error for #{occurrence[:name]} auth_scope" do
wrong_config = config
wrong_config[:auth_scope] = ocurrence[:value]
wrong_config[:auth_scope] = occurrence[:value]

expect do
described_class.new(wrong_config)
Expand All @@ -184,10 +184,10 @@
[{ value: nil, name: 'nil' },
{ value: '', name: 'blank' },
{ value: 344, name: 344 },
{ value: 'ftp://www.test.com', name: 'invalid uri' }].each do |ocurrence|
it "raises uri configuration error for #{ocurrence[:name]} uri" do
{ value: 'ftp://www.test.com', name: 'invalid uri' }].each do |occurrence|
it "raises uri configuration error for #{occurrence[:name]} uri" do
wrong_config = config
wrong_config[:uri] = ocurrence[:value]
wrong_config[:uri] = occurrence[:value]

expect do
described_class.new(wrong_config)
Expand All @@ -203,10 +203,10 @@
context 'with bad username' do
[{ value: nil, name: 'nil' },
{ value: '', name: 'blank' },
{ value: 344, name: 344 }].each do |ocurrence|
it "raises username configuration error for #{ocurrence[:name]} username" do
{ value: 344, name: 344 }].each do |occurrence|
it "raises username configuration error for #{occurrence[:name]} username" do
wrong_config = config
wrong_config[:username] = ocurrence[:value]
wrong_config[:username] = occurrence[:value]

expect do
described_class.new(wrong_config)
Expand All @@ -218,10 +218,10 @@
context 'with bad password' do
[{ value: nil, name: 'nil' },
{ value: '', name: 'blank' },
{ value: 344, name: 344 }].each do |ocurrence|
it "raises password configuration error for #{ocurrence[:name]} password" do
{ value: 344, name: 344 }].each do |occurrence|
it "raises password configuration error for #{occurrence[:name]} password" do
wrong_config = config
wrong_config[:password] = ocurrence[:value]
wrong_config[:password] = occurrence[:value]

expect do
described_class.new(wrong_config)
Expand Down

0 comments on commit 2981bb9

Please sign in to comment.