Sha256: c6f17c4c08e4e5d66af65edb7620bdcf7a314afeac3b04035ced9b71c57daf2c

Contents?: true

Size: 752 Bytes

Versions: 10

Compression:

Stored size: 752 Bytes

Contents

require 'spec_helper'

RSpec.describe 'hyrax/admin/admin_sets/_form_participants.html.erb', type: :view do
  let(:template) { stub_model(Hyrax::PermissionTemplate) }
  let(:pt_form) do
    instance_double(Hyrax::Forms::PermissionTemplateForm,
                    model_name: template.model_name,
                    to_key: template.to_key,
                    access_grants: template.access_grants)
  end
  before do
    @form = instance_double(Hyrax::Forms::AdminSetForm,
                            to_model: stub_model(AdminSet),
                            permission_template: pt_form)
    render
  end
  it "has the required selectors" do
    expect(rendered).to have_selector('#participants #user-participants-form input[type=text]')
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

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