Sha256: 6711ce2b3fc1dfb968a13c5465f2948b3de5d29c27ee5fe9c6d50b350e23ed80
Contents?: true
Size: 662 Bytes
Versions: 2
Compression:
Stored size: 662 Bytes
Contents
require 'spec_helper' describe "business_departments/new" do before(:each) do assign(:business_department, stub_model(BusinessDepartment, :name => "MyString", :enabled => false ).as_new_record) end it "renders new 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, :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/new.html.erb_spec.rb |
guara-0.0.1.rc | spec/views/business_departments/new.html.erb_spec.rb |