Skip to content

Commit

Permalink
Fix LeakyConstantDeclaration RuboCop offense
Browse files Browse the repository at this point in the history
  • Loading branch information
dmarcoux committed Jul 30, 2019
1 parent a174f9c commit 51fcf6e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/api/spec/lib/backend/remember_location_spec.rb
@@ -1,14 +1,14 @@
require 'rails_helper'

RSpec.describe Backend::RememberLocation do
let(:mod) { WithRememberLocation }
let(:mod) do
Class.new(WithRememberLocation) do
extend Backend::RememberLocation

class WithRememberLocation
extend Backend::RememberLocation

def self.run
raise 'Backend module missing' unless Thread.current[:_influxdb_obs_backend_api_module] == 'WithRememberLocation'
raise 'Backend method missing' unless Thread.current[:_influxdb_obs_backend_api_method] == 'run'
def self.run
raise 'Backend module missing' unless Thread.current[:_influxdb_obs_backend_api_module] == 'WithRememberLocation'
raise 'Backend method missing' unless Thread.current[:_influxdb_obs_backend_api_method] == 'run'
end
end
end

Expand Down

0 comments on commit 51fcf6e

Please sign in to comment.