Sha256: 14e8c2898f974d9ed482bc21dfaf074610538460a85b1f41e88f0f5f728a6166
Contents?: true
Size: 938 Bytes
Versions: 10
Compression:
Stored size: 938 Bytes
Contents
require 'spec_helper' RSpec.describe "The admin sets, through the admin dashboard" do let(:user) { create :admin } let(:admin_set) do create(:admin_set, title: ["A completely unique name"], description: ["A substantial description"], edit_users: [user.user_key]) end before do Hyrax::PermissionTemplate.create!(admin_set_id: admin_set.id) end scenario do login_as(user, scope: :user) visit '/admin' click_link "Administrative Sets" expect(page).to have_link "Create new administrative set" click_link "A completely unique name" expect(page).to have_content "A substantial description" expect(page).to have_content "Works in This Set" click_link "Edit" within('#description') do fill_in "Title", with: 'A better unique name' click_button 'Save' end expect(page).to have_content "A better unique name" end end
Version data entries
10 entries across 10 versions & 2 rubygems