Sha256: 9b90ddf4f697476533bfb70429d549924fb3d2df47a1998acae63455bb758fee

Contents?: true

Size: 654 Bytes

Versions: 20

Compression:

Stored size: 654 Bytes

Contents

require 'rails_helper'

describe "resource_import_results/show" do
  fixtures :all

  before(:each) do
    @resource_import_result = resource_import_results(:one)
    admin = User.find_by(username: 'enjuadmin')
    view.stub(:current_user).and_return(admin)
  end

  it "renders a resource_import_result" do
    render
    expect(rendered).to match /MyString/
  end

  it "renders even if a resource_import_file is deleted" do
    #@resource_import_result.resource_import_file = nil
    @resource_import_result.resource_import_file.delete
    @resource_import_result.resource_import_file = nil
    render
    expect(rendered).to match /MyText/
  end
end

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
enju_biblio-0.4.0.rc.1 spec/views/resource_import_results/show.html.erb_spec.rb
enju_biblio-0.3.8 spec/views/resource_import_results/show.html.erb_spec.rb
enju_biblio-0.3.7 spec/views/resource_import_results/show.html.erb_spec.rb
enju_biblio-0.3.6 spec/views/resource_import_results/show.html.erb_spec.rb
enju_biblio-0.4.0.beta.2 spec/views/resource_import_results/show.html.erb_spec.rb
enju_biblio-0.4.0.beta.1 spec/views/resource_import_results/show.html.erb_spec.rb
enju_biblio-0.3.5 spec/views/resource_import_results/show.html.erb_spec.rb
enju_biblio-0.3.4 spec/views/resource_import_results/show.html.erb_spec.rb
enju_biblio-0.3.3 spec/views/resource_import_results/show.html.erb_spec.rb
enju_biblio-0.3.2 spec/views/resource_import_results/show.html.erb_spec.rb
enju_biblio-0.3.1 spec/views/resource_import_results/show.html.erb_spec.rb
enju_biblio-0.3.0 spec/views/resource_import_results/show.html.erb_spec.rb
enju_biblio-0.3.0.rc.1 spec/views/resource_import_results/show.html.erb_spec.rb
enju_biblio-0.3.0.beta.2 spec/views/resource_import_results/show.html.erb_spec.rb
enju_biblio-0.2.5 spec/views/resource_import_results/show.html.erb_spec.rb
enju_biblio-0.2.4 spec/views/resource_import_results/show.html.erb_spec.rb
enju_biblio-0.2.3 spec/views/resource_import_results/show.html.erb_spec.rb
enju_biblio-0.2.2 spec/views/resource_import_results/show.html.erb_spec.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_biblio-0.2.1/spec/views/resource_import_results/show.html.erb_spec.rb
enju_biblio-0.2.1 spec/views/resource_import_results/show.html.erb_spec.rb