summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Niedzielski <adamsunday@gmail.com>2016-08-05 07:52:21 +0200
committerAdam Niedzielski <adamsunday@gmail.com>2016-08-05 07:52:21 +0200
commit245f237dc8675e43f229ddf74c70d1f72156bc3e (patch)
tree8a6911f29d15fe3b2704c3985db734adaf448048
parent895c3c55dc960e226b8d5415a4533e5faf696a0a (diff)
downloadgitlab-ce-245f237dc8675e43f229ddf74c70d1f72156bc3e.tar.gz
Update spec for adding member.
-rw-r--r--spec/features/projects/members/master_adds_member_with_expiration_date_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/features/projects/members/master_adds_member_with_expiration_date_spec.rb b/spec/features/projects/members/master_adds_member_with_expiration_date_spec.rb
index 87d9208465e..242919ee113 100644
--- a/spec/features/projects/members/master_adds_member_with_expiration_date_spec.rb
+++ b/spec/features/projects/members/master_adds_member_with_expiration_date_spec.rb
@@ -16,12 +16,12 @@ feature 'Projects > Members > Master adds member with expiration date', feature:
scenario 'expiration date is displayed in the members list' do
page.within ".users-project-form" do
select2(new_member.id, from: "#user_ids", multiple: true)
- fill_in "Access expiration date", with: "2016-08-02"
+ fill_in "Access expiration date", with: 4.days.from_now
click_on "Add users to project"
end
page.within ".project_member:first-child" do
- expect(page).to have_content("Access expires Aug 2, 2016")
+ expect(page).to have_content("Expires in 4 days")
end
end
end