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