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

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