Sha256: 7ac8f1682e0af1378f173203807cb788ba4c855389224064f712d3aa6abf7082

Contents?: true

Size: 597 Bytes

Versions: 16

Compression:

Stored size: 597 Bytes

Contents

require 'spec_helper'

describe 'curation_concerns/base/_browse_everything.html.erb', type: :view do
  let(:model) { stub_model(GenericWork) }
  let(:form) { Sufia::Forms::WorkForm.new(model, double) }
  let(:f) { double(object: form) }
  before do
    # allow(view).to receive(:parent).and_return(parent)
  end

  it 'shows user timing warning' do
    render 'curation_concerns/base/browse_everything', f: f
    page = Capybara::Node::Simple.new(rendered)
    expect(page).to have_selector('div.alert-success', text: /Please note that if you upload a large number of files/i, count: 1)
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
sufia-7.4.1 spec/views/curation_concerns/base/_browse_everything.html.erb_spec.rb
sufia-7.4.0 spec/views/curation_concerns/base/_browse_everything.html.erb_spec.rb
sufia-7.3.1 spec/views/curation_concerns/base/_browse_everything.html.erb_spec.rb
sufia-7.3.0 spec/views/curation_concerns/base/_browse_everything.html.erb_spec.rb
sufia-7.3.0.rc3 spec/views/curation_concerns/base/_browse_everything.html.erb_spec.rb
sufia-7.3.0.rc2 spec/views/curation_concerns/base/_browse_everything.html.erb_spec.rb
sufia-7.3.0.rc1 spec/views/curation_concerns/base/_browse_everything.html.erb_spec.rb
sufia-7.2.0 spec/views/curation_concerns/base/_browse_everything.html.erb_spec.rb
sufia-7.1.0 spec/views/curation_concerns/base/_browse_everything.html.erb_spec.rb
sufia-7.0.0 spec/views/curation_concerns/base/_browse_everything.html.erb_spec.rb
sufia-7.0.0.rc2 spec/views/curation_concerns/base/_browse_everything.html.erb_spec.rb
sufia-7.0.0.rc1 spec/views/curation_concerns/base/_browse_everything.html.erb_spec.rb
sufia-7.0.0.beta4 spec/views/curation_concerns/base/_browse_everything.html.erb_spec.rb
sufia-7.0.0.beta3 spec/views/curation_concerns/base/_browse_everything.html.erb_spec.rb
sufia-7.0.0.beta2 spec/views/curation_concerns/base/_browse_everything.html.erb_spec.rb
sufia-7.0.0.beta1 spec/views/curation_concerns/base/_browse_everything.html.erb_spec.rb