Skip to content

Commit

Permalink
making linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
pamatyatake2 committed Oct 25, 2024
1 parent f762d04 commit e9c9a48
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions app/controllers/saved_searches_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ class SavedSearchesController < ApplicationController
].freeze

def index
# binding.pry

searches = organization.users.map(&:saved_searches).flatten
my_search = SavedSearch.for_user(current_user)
respond_to do |format|
Expand Down
3 changes: 2 additions & 1 deletion spec/controllers/saved_searches_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
let(:default_user) { create(:user) }
let(:vha_business_line) { VhaBusinessLine.singleton }
let(:options) { { format: :json, decision_review_business_line_slug: non_comp_org.url } }
let(:delete_param) { { id: user.saved_searches.first.id, decision_review_business_line_slug: non_comp_org.url } }

before do
User.stub = user
Expand Down Expand Up @@ -51,7 +52,7 @@
describe "#destory /saved_searches/:id" do
context "VHA user saved search exists" do
it "should delete search" do
delete :destroy, params: { id: user.saved_searches.first.id, decision_review_business_line_slug: non_comp_org.url }
delete :destroy, params: delete_param

expect(response).to have_http_status(:ok)
end
Expand Down

0 comments on commit e9c9a48

Please sign in to comment.