summaryrefslogtreecommitdiff
path: root/spec/lib/omni_auth
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2018-06-01 02:43:47 +0800
committerLin Jen-Shin <godfat@godfat.org>2018-06-01 13:46:46 +0800
commit39b6f31c66ff51451033ff84a2832731065cd28d (patch)
tree0554167eb4e6133390e77016139bfe5c8b39ba3b /spec/lib/omni_auth
parentdb40a7c4e359052313b9a7bf104aa4e9586deada (diff)
downloadgitlab-ce-39b6f31c66ff51451033ff84a2832731065cd28d.tar.gz
Eliminate constants warnings by:
* Replace `require` or `require_relative` with `require_dependency` * Remove unneeded `autoload`
Diffstat (limited to 'spec/lib/omni_auth')
-rw-r--r--spec/lib/omni_auth/strategies/jwt_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/lib/omni_auth/strategies/jwt_spec.rb b/spec/lib/omni_auth/strategies/jwt_spec.rb
index 23485fbcb18..88d6d0b559a 100644
--- a/spec/lib/omni_auth/strategies/jwt_spec.rb
+++ b/spec/lib/omni_auth/strategies/jwt_spec.rb
@@ -43,7 +43,7 @@ describe OmniAuth::Strategies::Jwt do
end
it 'raises error' do
- expect { strategy.decoded }.to raise_error(OmniAuth::Strategies::JWT::ClaimInvalid)
+ expect { strategy.decoded }.to raise_error(OmniAuth::Strategies::Jwt::ClaimInvalid)
end
end
@@ -61,7 +61,7 @@ describe OmniAuth::Strategies::Jwt do
end
it 'raises error' do
- expect { strategy.decoded }.to raise_error(OmniAuth::Strategies::JWT::ClaimInvalid)
+ expect { strategy.decoded }.to raise_error(OmniAuth::Strategies::Jwt::ClaimInvalid)
end
end
@@ -80,7 +80,7 @@ describe OmniAuth::Strategies::Jwt do
end
it 'raises error' do
- expect { strategy.decoded }.to raise_error(OmniAuth::Strategies::JWT::ClaimInvalid)
+ expect { strategy.decoded }.to raise_error(OmniAuth::Strategies::Jwt::ClaimInvalid)
end
end
end