Sha256: dc9cbb102b87363e6f76f584feae17310cdbb355f1c607af6777843db0ff3570

Contents?: true

Size: 599 Bytes

Versions: 2

Compression:

Stored size: 599 Bytes

Contents

require 'spec_helper'

describe 'curation_concerns/permissions/confirm.html.erb', :no_clean do
  class MockCurationConcern
    attr_reader :human_readable_type, :visibility
    def initialize
      @human_readable_type = "GenericWork"
      @visibility = "public"
    end
  end

  let!(:curation_concern) { MockCurationConcern.new }
  before do
    allow(view).to receive(:curation_concern).and_return(curation_concern)
  end

  it 'renders the confirmation page' do
    render
    page = Capybara::Node::Simple.new(rendered)
    expect(page).to have_content("Apply changes to contents?")
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sufia-7.0.0.beta2 spec/views/curation_concerns/permissions/confirm.html.erb_spec.rb
sufia-7.0.0.beta1 spec/views/curation_concerns/permissions/confirm.html.erb_spec.rb