Sha256: 39aca4a06b6c2aa95937ef02490bc28b8f29ab74faaf4d94a563631a37418b8a

Contents?: true

Size: 474 Bytes

Versions: 10

Compression:

Stored size: 474 Bytes

Contents

require 'spec_helper'

describe 'hyrax/file_sets/_permission.html.erb', type: :view do
  let(:file_set) { stub_model(FileSet) }

  before do
    stub_template "hyrax/file_sets/_permission_form.html.erb" => 'a form'
    render 'hyrax/file_sets/permission', file_set: file_set
  end

  context "without additional users" do
    it "draws the permissions form without error" do
      expect(rendered).to have_css('form#permission[data-param-key="file_set"]')
    end
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
hyrax-1.1.1 spec/views/hyrax/file_sets/_permission.html.erb_spec.rb
hyrax-1.1.0 spec/views/hyrax/file_sets/_permission.html.erb_spec.rb
hyrax-1.0.5 spec/views/hyrax/file_sets/_permission.html.erb_spec.rb
hyrax-1.0.4 spec/views/hyrax/file_sets/_permission.html.erb_spec.rb
hyrax-1.0.3 spec/views/hyrax/file_sets/_permission.html.erb_spec.rb
hyrax-1.0.2 spec/views/hyrax/file_sets/_permission.html.erb_spec.rb
hyrax-1.0.1 spec/views/hyrax/file_sets/_permission.html.erb_spec.rb
hyrax-1.0.0.rc2 spec/views/hyrax/file_sets/_permission.html.erb_spec.rb
hyrax-1.0.0.rc1 spec/views/hyrax/file_sets/_permission.html.erb_spec.rb
test_hyrax-0.0.1.alpha spec/views/hyrax/file_sets/_permission.html.erb_spec.rb