Sha256: 8be93a310b64d0526d033ecefcf5b5124b2fd9953d58e29dfeaefac986d03990
Contents?: true
Size: 526 Bytes
Versions: 6
Compression:
Stored size: 526 Bytes
Contents
require 'rails_helper' RSpec.describe "trees/edit", type: :view do before(:each) do @tree = assign(:tree, Tree.create!( :title => "MyText", :content => "MyText", :toggler => false )) end it "renders the edit tree form" do render assert_select "form[action=?][method=?]", tree_path(@tree), "post" do assert_select "textarea[name=?]", "tree[title]" assert_select "textarea[name=?]", "tree[content]" assert_select "input[name=?]", "tree[toggler]" end end end
Version data entries
6 entries across 6 versions & 1 rubygems