mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 17:01:44 +02:00
Rubocop syntax updates #2711
This commit is contained in:
parent
e46c1130db
commit
59c73fca9e
9 changed files with 33 additions and 11 deletions
|
@ -321,7 +321,7 @@ describe 'EPP Contact', epp: true do
|
|||
response[:msg].should == 'Command completed successfully'
|
||||
|
||||
@contact.reload
|
||||
@contact.name.should == 'John Doe Edited'
|
||||
@contact.name.should == 'John Doe Edited'
|
||||
@contact.email.should == 'edited@example.example'
|
||||
end
|
||||
|
||||
|
@ -339,7 +339,7 @@ describe 'EPP Contact', epp: true do
|
|||
|
||||
response[:msg].should == 'Command completed successfully'
|
||||
@contact.reload
|
||||
@contact.name.should == 'John Doe Edited'
|
||||
@contact.name.should == 'John Doe Edited'
|
||||
end
|
||||
|
||||
it 'should update other contact with correct password' do
|
||||
|
@ -365,7 +365,7 @@ describe 'EPP Contact', epp: true do
|
|||
|
||||
response[:msg].should == 'Authorization error'
|
||||
@contact.reload
|
||||
@contact.name.should == 'John Doe Edited'
|
||||
@contact.name.should == 'John Doe Edited'
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -54,7 +54,7 @@ describe DomainMailer do
|
|||
end
|
||||
|
||||
it 'should render verification url' do
|
||||
@mail.body.encoded.should =~ /registrant\/domain_update_confirms/
|
||||
@mail.body.encoded.should =~ %r{registrant\/domain_update_confirms}
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -109,7 +109,7 @@ describe DomainMailer do
|
|||
end
|
||||
|
||||
it 'should render verification url' do
|
||||
@mail.body.encoded.should =~ /registrant\/domain_delete_con/ # somehowe delete_confirms not matching
|
||||
@mail.body.encoded.should =~ %r{registrant\/domain_delete_con} # somehowe delete_confirms not matching
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -33,6 +33,7 @@ end
|
|||
|
||||
module Autodoc
|
||||
class Document
|
||||
# rubocop:disable Metrics/AbcSize
|
||||
def route_info_doc
|
||||
return unless example.metadata[:route_info_doc]
|
||||
route = request.env["rack.routing_args"][:route_info]
|
||||
|
@ -56,6 +57,7 @@ module Autodoc
|
|||
|
||||
pretty_table(rows).join("\n")
|
||||
end
|
||||
# rubocop:enable Metrics/AbcSize
|
||||
|
||||
def pretty_table(rows)
|
||||
# longest_in_col = 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue