inventory setup
This commit is contained in:
14
spec/views/stock_check_items/edit.html.erb_spec.rb
Normal file
14
spec/views/stock_check_items/edit.html.erb_spec.rb
Normal file
@@ -0,0 +1,14 @@
|
||||
require 'rails_helper'
|
||||
|
||||
RSpec.describe "stock_check_items/edit", type: :view do
|
||||
before(:each) do
|
||||
@stock_check_item = assign(:stock_check_item, StockCheckItem.create!())
|
||||
end
|
||||
|
||||
it "renders the edit stock_check_item form" do
|
||||
render
|
||||
|
||||
assert_select "form[action=?][method=?]", stock_check_item_path(@stock_check_item), "post" do
|
||||
end
|
||||
end
|
||||
end
|
||||
14
spec/views/stock_check_items/index.html.erb_spec.rb
Normal file
14
spec/views/stock_check_items/index.html.erb_spec.rb
Normal file
@@ -0,0 +1,14 @@
|
||||
require 'rails_helper'
|
||||
|
||||
RSpec.describe "stock_check_items/index", type: :view do
|
||||
before(:each) do
|
||||
assign(:stock_check_items, [
|
||||
StockCheckItem.create!(),
|
||||
StockCheckItem.create!()
|
||||
])
|
||||
end
|
||||
|
||||
it "renders a list of stock_check_items" do
|
||||
render
|
||||
end
|
||||
end
|
||||
14
spec/views/stock_check_items/new.html.erb_spec.rb
Normal file
14
spec/views/stock_check_items/new.html.erb_spec.rb
Normal file
@@ -0,0 +1,14 @@
|
||||
require 'rails_helper'
|
||||
|
||||
RSpec.describe "stock_check_items/new", type: :view do
|
||||
before(:each) do
|
||||
assign(:stock_check_item, StockCheckItem.new())
|
||||
end
|
||||
|
||||
it "renders new stock_check_item form" do
|
||||
render
|
||||
|
||||
assert_select "form[action=?][method=?]", stock_check_items_path, "post" do
|
||||
end
|
||||
end
|
||||
end
|
||||
11
spec/views/stock_check_items/show.html.erb_spec.rb
Normal file
11
spec/views/stock_check_items/show.html.erb_spec.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
require 'rails_helper'
|
||||
|
||||
RSpec.describe "stock_check_items/show", type: :view do
|
||||
before(:each) do
|
||||
@stock_check_item = assign(:stock_check_item, StockCheckItem.create!())
|
||||
end
|
||||
|
||||
it "renders attributes in <p>" do
|
||||
render
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user