Sha256: e4de1e81722bf48a1da44d8899408347d90132105244126117c9a84395356ac4
Contents?: true
Size: 699 Bytes
Versions: 2
Compression:
Stored size: 699 Bytes
Contents
require 'spec_helper' describe "business_departments/edit" do before(:each) do @business_department = assign(:business_department, stub_model(BusinessDepartment, :name => "MyString", :enabled => false )) end it "renders the edit business_department form" do render # Run the generator again with the --webrat flag if you want to use webrat matchers assert_select "form", :action => business_departments_path(@business_department), :method => "post" do assert_select "input#business_department_name", :name => "business_department[name]" assert_select "input#business_department_enabled", :name => "business_department[enabled]" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
guara-0.0.3 | spec/views/business_departments/edit.html.erb_spec.rb |
guara-0.0.1.rc | spec/views/business_departments/edit.html.erb_spec.rb |