Sha256: 7436b029269d3fdd8b4c60333db5f3d7ef655b4729ad80aea726e2be8cc503fb
Contents?: true
Size: 615 Bytes
Versions: 10
Compression:
Stored size: 615 Bytes
Contents
require 'spec_helper' describe 'assets/edit' do before(:each) do @asset = assign(:asset, stub_model(Asset, title: 'MyString', description: 'MyText' )) end it 'renders the edit 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(@asset), 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