2019-05-17 08:43:03 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require "spec_helper"
|
|
|
|
|
2020-06-24 05:08:32 -04:00
|
|
|
RSpec.describe Groups::GroupMembersHelper do
|
2019-05-17 08:43:03 -04:00
|
|
|
describe '.group_member_select_options' do
|
|
|
|
let(:group) { create(:group) }
|
|
|
|
|
|
|
|
before do
|
|
|
|
helper.instance_variable_set(:@group, group)
|
|
|
|
end
|
|
|
|
|
|
|
|
it 'returns an options hash' do
|
|
|
|
expect(helper.group_member_select_options).to include(multiple: true, scope: :all, email_user: true)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|