Permalink
Browse files

Fixed RuboCop offense Lint/UselessAssignment

Bug: 63307
Change-Id: I89eb92a64a15490e3a5042ec86733bc5884122b9
  • Loading branch information...
zeljkofilipin authored and marxarelli committed Oct 23, 2014
1 parent ffc0cfc commit e0aa432c771331050f83ee2d21d6bd8ea376b84c
Showing with 1 addition and 9 deletions.
  1. +0 −4 .rubocop_todo.yml
  2. +1 −5 spec/client_spec.rb
View
@@ -5,10 +5,6 @@
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.
-# Offense count: 3
-Lint/UselessAssignment:
- Enabled: false
-
# Offense count: 1
# Configuration parameters: CountComments.
Metrics/ClassLength:
View
@@ -158,8 +158,6 @@
context 'when API returns NeedToken' do
before do
- headers = { 'Set-Cookie' => 'prefixSession=789; path=/; domain=localhost; HttpOnly' }
-
stub_request(:post, api_url).
with(body: { format: 'json', action: 'login', lgname: 'Test', lgpassword: 'qwe123' }).
to_return(
@@ -181,7 +179,7 @@
end
it 'sends second request with token and cookies' do
- response = subject.log_in('Test', 'qwe123')
+ subject.log_in('Test', 'qwe123')
expect(@success_req).to have_been_requested
end
@@ -288,8 +286,6 @@
context 'when API returns NeedToken' do
before do
- headers = { 'Set-Cookie' => 'prefixSession=789; path=/; domain=localhost; HttpOnly' }
-
stub_request(:post, api_url).
with(body: { format: 'json', action: 'createaccount', name: 'Test', password: 'qwe123' }).
to_return(

0 comments on commit e0aa432

Please sign in to comment.