diff --git a/.rspec b/.rspec index c99d2e7..a35c44f 100644 --- a/.rspec +++ b/.rspec @@ -1 +1 @@ ---require spec_helper +--require rails_helper diff --git a/spec/api/v1/auth/jwt_authenticator_spec.rb b/spec/api/v1/auth/jwt_authenticator_spec.rb index 63447bb..faf3271 100644 --- a/spec/api/v1/auth/jwt_authenticator_spec.rb +++ b/spec/api/v1/auth/jwt_authenticator_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' - describe APIv1::Auth::JWTAuthenticator do let :token do 'Bearer ' + jwt_build(payload) diff --git a/spec/api/v1/auth/middleware_spec.rb b/spec/api/v1/auth/middleware_spec.rb index bb83e74..1c59e38 100644 --- a/spec/api/v1/auth/middleware_spec.rb +++ b/spec/api/v1/auth/middleware_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' - describe APIv1::Auth::Middleware, type: :request do class TestApp < Grape::API helpers APIv1::Helpers diff --git a/spec/api/v1/cors_spec.rb b/spec/api/v1/cors_spec.rb index 98c3e55..cd2767d 100644 --- a/spec/api/v1/cors_spec.rb +++ b/spec/api/v1/cors_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' - describe APIv1::Withdraw, type: :request do let(:token) { jwt_build(uid: 'O90Y88JDPQ7167') } diff --git a/spec/consumers/barong/model/account_created_consumer_spec.rb b/spec/consumers/barong/model/account_created_consumer_spec.rb index 182e1dd..c786f6e 100644 --- a/spec/consumers/barong/model/account_created_consumer_spec.rb +++ b/spec/consumers/barong/model/account_created_consumer_spec.rb @@ -1,7 +1,5 @@ # frozen_string_literal: true -require 'rails_helper' - RSpec.describe Barong::Model::AccountCreatedConsumer do describe '.call' do let(:event) do