Skip to content

Commit

Permalink
rubykube#13: remove duplication from *spec.rb files in favor of .rspe…
Browse files Browse the repository at this point in the history
…c declaration
  • Loading branch information
subaru9 committed Jun 15, 2018
1 parent e904bc2 commit f9396f1
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion .rspec
Original file line number Diff line number Diff line change
@@ -1 +1 @@
--require spec_helper
--require rails_helper
2 changes: 0 additions & 2 deletions spec/api/v1/auth/jwt_authenticator_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

describe APIv1::Auth::JWTAuthenticator do
let :token do
'Bearer ' + jwt_build(payload)
Expand Down
2 changes: 0 additions & 2 deletions spec/api/v1/auth/middleware_spec.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 0 additions & 2 deletions spec/api/v1/cors_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

describe APIv1::Withdraw, type: :request do
let(:token) { jwt_build(uid: 'O90Y88JDPQ7167') }

Expand Down
2 changes: 0 additions & 2 deletions spec/consumers/barong/model/account_created_consumer_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

RSpec.describe Barong::Model::AccountCreatedConsumer do
describe '.call' do
let(:event) do
Expand Down

0 comments on commit f9396f1

Please sign in to comment.