Sha256: be266940ae7172c6f168bc0cb5eb81eaa91d3663ca4592017e3307160cac561c

Contents?: true

Size: 1018 Bytes

Versions: 8

Compression:

Stored size: 1018 Bytes

Contents

require 'spec_helper'

describe "export_files/index" do
  before(:each) do
    assign(:export_files, Kaminari::paginate_array([
      stub_model(ExportFile,
        :export_file_name => "Export File Name",
        :export_content_type => "Export Content Type",
        :export_file_size => "Export File Size",
        :state => "State"
      ),
      stub_model(ExportFile,
        :export_file_name => "Export File Name",
        :export_content_type => "Export Content Type",
        :export_file_size => "Export File Size",
        :state => "State"
      )
    ]).page(1))
  end

  it "renders a list of export_files" do
    render
    # Run the generator again with the --webrat flag if you want to use webrat matchers
    assert_select "tr>td", :text => "Export File Name".to_s, :count => 2
    assert_select "tr>td", :text => "Export Content Type".to_s, :count => 2
    assert_select "tr>td", :text => "Export File Size".to_s, :count => 2
    assert_select "tr>td", :text => "State".to_s, :count => 2
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

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