Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andrepcg committed Jul 2, 2020
1 parent 6d82a32 commit edbe0b3
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 31 deletions.
2 changes: 1 addition & 1 deletion app/controllers/webhooks/sms/generic_controller.rb
Expand Up @@ -7,7 +7,7 @@ class GenericController < WebhooksController

def inbound_sms
adapter = ::SmsAdapters::GenericAdapter.new(params)
Sms::Create.new(adapter).call
::Sms::Create.new(adapter).call
head :ok
rescue ActiveRecord::RecordNotFound
head :bad_request
Expand Down
1 change: 1 addition & 0 deletions spec/fabricators/phone_number_fabricator.rb
Expand Up @@ -3,4 +3,5 @@
Fabricator(:phone_number) do
number { Faker::PhoneNumber.cell_phone_in_e164 }
available true
country_iso3166 { Faker::Address.country_code }
end
17 changes: 0 additions & 17 deletions spec/helpers/phones_helper_spec.rb

This file was deleted.

12 changes: 0 additions & 12 deletions spec/requests/phones_request_spec.rb

This file was deleted.

2 changes: 1 addition & 1 deletion spec/requests/webhooks/sendgrid_controller_request_spec.rb
Expand Up @@ -2,7 +2,7 @@

require 'rails_helper'

RSpec.describe Webhooks::Sms::SendgridController, type: :request do
RSpec.describe Webhooks::SendgridController, type: :request do
describe 'POST /email_inbound' do
let!(:mailbox) { Fabricate :mailbox }

Expand Down

0 comments on commit edbe0b3

Please sign in to comment.