Sha256: c0f69ac559980b31b7595cdc7f86c654e05553c511fb1d672f5f06158f4882f2
Contents?: true
Size: 637 Bytes
Versions: 2
Compression:
Stored size: 637 Bytes
Contents
require 'spec_helper' describe "company_businesses/new" do before(:each) do assign(:company_business, stub_model(CompanyBusiness, :name => "MyString", :enabled => false ).as_new_record) end it "renders new company_business form" do render # Run the generator again with the --webrat flag if you want to use webrat matchers assert_select "form", :action => company_businesses_path, :method => "post" do assert_select "input#company_business_name", :name => "company_business[name]" assert_select "input#company_business_enabled", :name => "company_business[enabled]" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
guara-0.0.3 | spec/views/company_businesses/new.html.erb_spec.rb |
guara-0.0.1.rc | spec/views/company_businesses/new.html.erb_spec.rb |