Sha256: d259db620dbc6797b4e0ee0540148589cfb18af7898d1f522bc8aaecc6806c9a
Contents?: true
Size: 822 Bytes
Versions: 2
Compression:
Stored size: 822 Bytes
Contents
require 'spec_helper' describe "cities/index.html.erb" do before(:each) do assign(:cities, [ stub_model(City, :name => "Name", :state_id => 1, :active => false ), stub_model(City, :name => "Name", :state_id => 1, :active => false ) ]) end it "renders a list of cities" do render # Run the generator again with the --webrat flag if you want to use webrat matchers assert_select "tr>td", :text => "Name".to_s, :count => 2 # Run the generator again with the --webrat flag if you want to use webrat matchers assert_select "tr>td", :text => 1.to_s, :count => 2 # Run the generator again with the --webrat flag if you want to use webrat matchers assert_select "tr>td", :text => false.to_s, :count => 2 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spree_suppliers-0.0.1 | spec/views/cities/index.html.erb_spec.rb |
spree_suppliers-0.60.3 | spec/views/cities/index.html.erb_spec.rb |