inventory setup
This commit is contained in:
39
spec/routing/inventory_definitions_routing_spec.rb
Normal file
39
spec/routing/inventory_definitions_routing_spec.rb
Normal file
@@ -0,0 +1,39 @@
|
||||
require "rails_helper"
|
||||
|
||||
RSpec.describe InventoryDefinitionsController, type: :routing do
|
||||
describe "routing" do
|
||||
|
||||
it "routes to #index" do
|
||||
expect(:get => "/inventory_definitions").to route_to("inventory_definitions#index")
|
||||
end
|
||||
|
||||
it "routes to #new" do
|
||||
expect(:get => "/inventory_definitions/new").to route_to("inventory_definitions#new")
|
||||
end
|
||||
|
||||
it "routes to #show" do
|
||||
expect(:get => "/inventory_definitions/1").to route_to("inventory_definitions#show", :id => "1")
|
||||
end
|
||||
|
||||
it "routes to #edit" do
|
||||
expect(:get => "/inventory_definitions/1/edit").to route_to("inventory_definitions#edit", :id => "1")
|
||||
end
|
||||
|
||||
it "routes to #create" do
|
||||
expect(:post => "/inventory_definitions").to route_to("inventory_definitions#create")
|
||||
end
|
||||
|
||||
it "routes to #update via PUT" do
|
||||
expect(:put => "/inventory_definitions/1").to route_to("inventory_definitions#update", :id => "1")
|
||||
end
|
||||
|
||||
it "routes to #update via PATCH" do
|
||||
expect(:patch => "/inventory_definitions/1").to route_to("inventory_definitions#update", :id => "1")
|
||||
end
|
||||
|
||||
it "routes to #destroy" do
|
||||
expect(:delete => "/inventory_definitions/1").to route_to("inventory_definitions#destroy", :id => "1")
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
39
spec/routing/stock_check_items_routing_spec.rb
Normal file
39
spec/routing/stock_check_items_routing_spec.rb
Normal file
@@ -0,0 +1,39 @@
|
||||
require "rails_helper"
|
||||
|
||||
RSpec.describe StockCheckItemsController, type: :routing do
|
||||
describe "routing" do
|
||||
|
||||
it "routes to #index" do
|
||||
expect(:get => "/stock_check_items").to route_to("stock_check_items#index")
|
||||
end
|
||||
|
||||
it "routes to #new" do
|
||||
expect(:get => "/stock_check_items/new").to route_to("stock_check_items#new")
|
||||
end
|
||||
|
||||
it "routes to #show" do
|
||||
expect(:get => "/stock_check_items/1").to route_to("stock_check_items#show", :id => "1")
|
||||
end
|
||||
|
||||
it "routes to #edit" do
|
||||
expect(:get => "/stock_check_items/1/edit").to route_to("stock_check_items#edit", :id => "1")
|
||||
end
|
||||
|
||||
it "routes to #create" do
|
||||
expect(:post => "/stock_check_items").to route_to("stock_check_items#create")
|
||||
end
|
||||
|
||||
it "routes to #update via PUT" do
|
||||
expect(:put => "/stock_check_items/1").to route_to("stock_check_items#update", :id => "1")
|
||||
end
|
||||
|
||||
it "routes to #update via PATCH" do
|
||||
expect(:patch => "/stock_check_items/1").to route_to("stock_check_items#update", :id => "1")
|
||||
end
|
||||
|
||||
it "routes to #destroy" do
|
||||
expect(:delete => "/stock_check_items/1").to route_to("stock_check_items#destroy", :id => "1")
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
39
spec/routing/stock_checks_routing_spec.rb
Normal file
39
spec/routing/stock_checks_routing_spec.rb
Normal file
@@ -0,0 +1,39 @@
|
||||
require "rails_helper"
|
||||
|
||||
RSpec.describe StockChecksController, type: :routing do
|
||||
describe "routing" do
|
||||
|
||||
it "routes to #index" do
|
||||
expect(:get => "/stock_checks").to route_to("stock_checks#index")
|
||||
end
|
||||
|
||||
it "routes to #new" do
|
||||
expect(:get => "/stock_checks/new").to route_to("stock_checks#new")
|
||||
end
|
||||
|
||||
it "routes to #show" do
|
||||
expect(:get => "/stock_checks/1").to route_to("stock_checks#show", :id => "1")
|
||||
end
|
||||
|
||||
it "routes to #edit" do
|
||||
expect(:get => "/stock_checks/1/edit").to route_to("stock_checks#edit", :id => "1")
|
||||
end
|
||||
|
||||
it "routes to #create" do
|
||||
expect(:post => "/stock_checks").to route_to("stock_checks#create")
|
||||
end
|
||||
|
||||
it "routes to #update via PUT" do
|
||||
expect(:put => "/stock_checks/1").to route_to("stock_checks#update", :id => "1")
|
||||
end
|
||||
|
||||
it "routes to #update via PATCH" do
|
||||
expect(:patch => "/stock_checks/1").to route_to("stock_checks#update", :id => "1")
|
||||
end
|
||||
|
||||
it "routes to #destroy" do
|
||||
expect(:delete => "/stock_checks/1").to route_to("stock_checks#destroy", :id => "1")
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
39
spec/routing/stock_journals_routing_spec.rb
Normal file
39
spec/routing/stock_journals_routing_spec.rb
Normal file
@@ -0,0 +1,39 @@
|
||||
require "rails_helper"
|
||||
|
||||
RSpec.describe StockJournalsController, type: :routing do
|
||||
describe "routing" do
|
||||
|
||||
it "routes to #index" do
|
||||
expect(:get => "/stock_journals").to route_to("stock_journals#index")
|
||||
end
|
||||
|
||||
it "routes to #new" do
|
||||
expect(:get => "/stock_journals/new").to route_to("stock_journals#new")
|
||||
end
|
||||
|
||||
it "routes to #show" do
|
||||
expect(:get => "/stock_journals/1").to route_to("stock_journals#show", :id => "1")
|
||||
end
|
||||
|
||||
it "routes to #edit" do
|
||||
expect(:get => "/stock_journals/1/edit").to route_to("stock_journals#edit", :id => "1")
|
||||
end
|
||||
|
||||
it "routes to #create" do
|
||||
expect(:post => "/stock_journals").to route_to("stock_journals#create")
|
||||
end
|
||||
|
||||
it "routes to #update via PUT" do
|
||||
expect(:put => "/stock_journals/1").to route_to("stock_journals#update", :id => "1")
|
||||
end
|
||||
|
||||
it "routes to #update via PATCH" do
|
||||
expect(:patch => "/stock_journals/1").to route_to("stock_journals#update", :id => "1")
|
||||
end
|
||||
|
||||
it "routes to #destroy" do
|
||||
expect(:delete => "/stock_journals/1").to route_to("stock_journals#destroy", :id => "1")
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user