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

Version Path
intesys_asset_manager-1.2.4 spec/views/asset_manager/assets/edit.html.haml_spec.rb
intesys_asset_manager-1.2.3 spec/views/asset_manager/assets/edit.html.haml_spec.rb
intesys_asset_manager-1.2.2 spec/views/asset_manager/assets/edit.html.haml_spec.rb
intesys_asset_manager-1.2.1 spec/views/asset_manager/assets/edit.html.haml_spec.rb
intesys_asset_manager-1.2.0 spec/views/asset_manager/assets/edit.html.haml_spec.rb
intesys_asset_manager-1.1.3 spec/views/asset_manager/assets/edit.html.haml_spec.rb
intesys_asset_manager-1.1.2 spec/views/asset_manager/assets/edit.html.haml_spec.rb
intesys_asset_manager-1.1.1 spec/views/asset_manager/assets/edit.html.haml_spec.rb
intesys_asset_manager-1.1.0 spec/views/asset_manager/assets/edit.html.haml_spec.rb
intesys_asset_manager-1.0.0 spec/views/asset_manager/assets/edit.html.haml_spec.rb