Sha256: 87e1c4613e00d4669a4214dfea5c6093098e7426b67f6cdbd80f269cb7b2d79a
Contents?: true
Size: 604 Bytes
Versions: 2
Compression:
Stored size: 604 Bytes
Contents
require 'spec_helper' describe "foos/new.html.erb" do before(:each) do assign(:foo, stub_model(Foo, :new_record? => true, :name => "MyString", :active => false, :style => "MyString" )) end it "renders new foo form" do render rendered.should have_selector("form", :action => foos_path, :method => "post") do |form| form.should have_selector("input#foo_name", :name => "foo[name]") form.should have_selector("input#foo_active", :name => "foo[active]") form.should have_selector("select#foo_style", :name => "foo[style]") end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mir_extensions-1.1.0 | spec/views/foos/new.html.erb_spec.rb |
mir_extensions-1.0.0 | spec/views/foos/new.html.erb_spec.rb |