create InJuty

This commit is contained in:
Zin Lin Phyo
2017-08-23 15:02:27 +06:30
parent d6b8e8bdee
commit 874a9b60be
25 changed files with 692 additions and 636 deletions

View File

@@ -0,0 +1,14 @@
require 'rails_helper'
RSpec.describe "origami/in_juties/edit", type: :view do
before(:each) do
@origami_in_juty = assign(:origami_in_juty, InJuty.create!())
end
it "renders the edit origami_in_juty form" do
render
assert_select "form[action=?][method=?]", origami_in_juty_path(@origami_in_juty), "post" do
end
end
end

View File

@@ -0,0 +1,14 @@
require 'rails_helper'
RSpec.describe "origami/in_juties/index", type: :view do
before(:each) do
assign(:in_juties, [
InJuty.create!(),
InJuty.create!()
])
end
it "renders a list of origami/in_juties" do
render
end
end

View File

@@ -0,0 +1,14 @@
require 'rails_helper'
RSpec.describe "origami/in_juties/new", type: :view do
before(:each) do
assign(:origami_in_juty, InJuty.new())
end
it "renders new origami_in_juty form" do
render
assert_select "form[action=?][method=?]", in_juties_path, "post" do
end
end
end

View File

@@ -0,0 +1,11 @@
require 'rails_helper'
RSpec.describe "origami/in_juties/show", type: :view do
before(:each) do
@origami_in_juty = assign(:origami_in_juty, InJuty.create!())
end
it "renders attributes in <p>" do
render
end
end