We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7e567fd + cd01cb6 commit a90f3bbCopy full SHA for a90f3bb
app/controllers/kits_controller.rb
@@ -1,4 +1,8 @@
1
class KitsController < ApplicationController
2
+ def show
3
+ redirect_to allocations_kit_path
4
+ end
5
+
6
def index
7
@kits = current_organization.kits.includes(:item, line_items: :item).class_filter(filter_params)
8
@inventory = View::Inventory.new(current_organization.id)
spec/requests/kit_requests_spec.rb
@@ -12,6 +12,13 @@
12
sign_in(user)
13
end
14
15
+ describe "GET #show" do
16
+ it "should redirect to the allocations page" do
17
+ get kit_url(kit)
18
+ expect(response).to redirect_to allocations_kit_path(kit.id)
19
20
21
22
describe "GET #index" do
23
before do
24
# this shouldn't be shown
0 commit comments