2018-06-28 09:24:54 -04:00
|
|
|
require 'spec_helper'
|
|
|
|
|
2018-07-05 02:32:05 -04:00
|
|
|
describe 'Group labels' do
|
2018-06-28 09:24:54 -04:00
|
|
|
let(:user) { create(:user) }
|
|
|
|
let(:group) { create(:group) }
|
|
|
|
let!(:label) { create(:group_label, group: group) }
|
|
|
|
|
2018-07-05 02:32:05 -04:00
|
|
|
before do
|
2018-06-28 09:24:54 -04:00
|
|
|
group.add_owner(user)
|
|
|
|
sign_in(user)
|
|
|
|
visit group_labels_path(group)
|
|
|
|
end
|
|
|
|
|
2018-07-05 02:32:05 -04:00
|
|
|
it 'label has edit button', :js do
|
2018-06-28 09:24:54 -04:00
|
|
|
expect(page).to have_selector('.label-action.edit')
|
|
|
|
end
|
|
|
|
end
|