Sha256: 9119392f281a85bffe9bf70dce78caf392fc469eea37014f98c52bfabea239de

Contents?: true

Size: 910 Bytes

Versions: 11

Compression:

Stored size: 910 Bytes

Contents

require 'spec_helper'

describe "export_files/new" do
  before(:each) do
    assign(:export_file, stub_model(ExportFile,
      :export_file_name => "MyString",
      :export_content_type => "MyString",
      :export_file_size => "MyString",
      :state => "MyString"
    ).as_new_record)
  end

  it "renders new export_file form" do
    render

    # Run the generator again with the --webrat flag if you want to use webrat matchers
    assert_select "form", :action => export_files_path, :method => "post" do
      assert_select "input#export_file_export_file_name", :name => "export_file[export_file_name]"
      assert_select "input#export_file_export_content_type", :name => "export_file[export_content_type]"
      assert_select "input#export_file_export_file_size", :name => "export_file[export_file_size]"
      assert_select "input#export_file_state", :name => "export_file[state]"
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
enju_export-0.1.1.pre6 spec/views/export_files/new.html.erb_spec.rb
enju_export-0.1.1.pre5 spec/views/export_files/new.html.erb_spec.rb
enju_export-0.1.1.pre4 spec/views/export_files/new.html.erb_spec.rb
enju_export-0.1.1.pre3 spec/views/export_files/new.html.erb_spec.rb
enju_export-0.1.1.pre2 spec/views/export_files/new.html.erb_spec.rb
enju_export-0.1.1.pre spec/views/export_files/new.html.erb_spec.rb
enju_export-0.1.0.pre spec/views/export_files/new.html.erb_spec.rb
enju_export-0.1.0 spec/views/export_files/new.html.erb_spec.rb
enju_export-0.0.3 spec/views/export_files/new.html.erb_spec.rb
enju_export-0.0.2 spec/views/export_files/new.html.erb_spec.rb
enju_export-0.0.1 spec/views/export_files/new.html.erb_spec.rb