Sha256: 258ddc0e0792ece820e41a2e2d5091cb198072db9abe119be8c049d23a7d888d
Contents?: true
Size: 588 Bytes
Versions: 10
Compression:
Stored size: 588 Bytes
Contents
require 'spec_helper' describe 'assets/new' do before(:each) do assign(:asset, stub_model(Asset, title: 'MyString', description: 'MyText' ).as_new_record) end it 'renders new asset form' do render # Run the generator again with the --webrat flag if you want to use webrat matchers assert_select 'form', action: assets_path, method: 'post' do assert_select 'input#asset_title', name: 'asset[title]' assert_select 'textarea#asset_description', name: 'asset[description]' end end end
Version data entries
10 entries across 10 versions & 1 rubygems