Sha256: 9271b8d4a1f86b64d11bc0c05d582b6947ba273faee3cf48b4abff5a96de8a7f

Contents?: true

Size: 682 Bytes

Versions: 3

Compression:

Stored size: 682 Bytes

Contents

require 'spec_helper'

describe "resource_import_files/show" do
  fixtures :all

  before(:each) do
    file = resource_import_files(:resource_import_file_00001)
    assign(:resource_import_file, file)
    assign(:resource_import_results, 
      Kaminari.paginate_array(file.resource_import_results).page(1))
    admin = User.find('enjuadmin')
    view.stub(:current_user).and_return(admin)
  end

  it "renders a resource_import_file" do
    render
    expect(rendered).to match /MyString/
  end
  it "renders a list of resource_import_results" do
    render
    expect(rendered).to match /<table/
    expect(rendered).to render_template "resource_import_files/_results"
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
enju_biblio-0.2.0.beta.3 spec/views/resource_import_files/show.html.erb_spec.rb
enju_biblio-0.2.0.beta.2 spec/views/resource_import_files/show.html.erb_spec.rb
enju_biblio-0.2.0.beta.1 spec/views/resource_import_files/show.html.erb_spec.rb