Sha256: f960280ee2624a9c3926d0526c5abc0d3fc4694ef3c3f21bb6335b3fe58e44b3
Contents?: true
Size: 627 Bytes
Versions: 2
Compression:
Stored size: 627 Bytes
Contents
require 'spec_helper' describe "cities/new.html.erb" do before(:each) do assign(:city, stub_model(City, :name => "MyString", :state_id => 1, :active => false ).as_new_record) end it "renders new city form" do render # Run the generator again with the --webrat flag if you want to use webrat matchers assert_select "form", :action => cities_path, :method => "post" do assert_select "input#city_name", :name => "city[name]" assert_select "input#city_state_id", :name => "city[state_id]" assert_select "input#city_active", :name => "city[active]" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spree_suppliers-0.0.1 | spec/views/cities/new.html.erb_spec.rb |
spree_suppliers-0.60.3 | spec/views/cities/new.html.erb_spec.rb |