spec/integration/user_group_spec.rb in gooddata-0.6.26 vs spec/integration/user_group_spec.rb in gooddata-0.6.27
- old
+ new
@@ -47,11 +47,11 @@
old_count = @group.members.to_a.length
@group.add_member(users)
new_count = @group.members.to_a.length
- expect(new_count).to eql(old_count + 1)
+ expect(new_count).to eq (old_count + 1)
group_members = @group.members.to_a
users.each do |user|
res = group_members.find do |group_member|
@@ -67,26 +67,26 @@
users = @users.to_a.take(@bulk_size)
@group.set_members(users)
group_members = @group.members.to_a
- expect(group_members.length).to eql(users.length)
+ expect(group_members.length).to eq users.length
end
end
describe '#remove_members' do
it 'Should remove existing members' do
users = @users.to_a.take(@bulk_size)
@group.set_members(users)
group_members = @group.members.to_a
- expect(group_members.length).to eql(users.length)
+ expect(group_members.length).to eq users.length
@group.remove_members(users)
group_members = @group.members.to_a
- expect(group_members.length).to eql(0)
+ expect(group_members.length).to eq 0
end
end
describe '#members' do
it 'Should return members as array' do
@@ -97,31 +97,31 @@
end
end
describe '#name' do
it 'Should return name of user group' do
- expect(@group.name).to eql(@user_group_name)
+ expect(@group.name).to eq @user_group_name
end
end
describe '#name=' do
it 'Should assign name of user group' do
new_name = 'This is new name'
@group.name = new_name
- expect(@group.name).to eql(new_name)
+ expect(@group.name).to eq new_name
end
end
describe '#description' do
it 'Should return name of user group' do
- expect(@group.description).to eql(@user_group_description)
+ expect(@group.description).to eq @user_group_description
end
end
describe '#description=' do
it 'Should assign description of user group' do
new_description = 'This is new description'
@group.description = new_description
- expect(@group.description).to eql(new_description)
+ expect(@group.description).to eq new_description
end
end
end