Sha256: 024bb2abceb7ff9c4f9dc3f28f55874a57c993f1315d3cde2f3fea6081e472a7
Contents?: true
Size: 589 Bytes
Versions: 6
Compression:
Stored size: 589 Bytes
Contents
require 'rails_helper' RSpec.describe "trees/index", type: :view do before(:each) do assign(:trees, [ Tree.create!( :title => "MyText", :content => "MyText", :toggler => false ), Tree.create!( :title => "MyText", :content => "MyText", :toggler => false ) ]) end it "renders a list of trees" do render assert_select "tr>td", :text => "MyText".to_s, :count => 4 assert_select "tr>td", :text => "MyText".to_s, :count => 4 assert_select "tr>td", :text => false.to_s, :count => 2 end end
Version data entries
6 entries across 6 versions & 1 rubygems