Sha256: cbed50dd71dbb208a02bc4e8632fa16ee935fc4e0ad71941974222ed870e3fd9
Contents?: true
Size: 622 Bytes
Versions: 2
Compression:
Stored size: 622 Bytes
Contents
require 'spec_helper' describe "foos/index.html.erb" do before(:each) do assign(:foos, [ stub_model(Foo, :name => "Name", :active => false, :style => "Style" ), stub_model(Foo, :name => "Name", :active => false, :style => "Style" ) ]) end it "renders a list of foos" do render rendered.should have_selector("tr>td", :content => "Name".to_s, :count => 2) rendered.should have_selector("tr>td", :content => false.to_s, :count => 2) rendered.should have_selector("tr>td", :content => "Style".to_s, :count => 2) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mir_extensions-1.1.0 | spec/views/foos/index.html.erb_spec.rb |
mir_extensions-1.0.0 | spec/views/foos/index.html.erb_spec.rb |