summaryrefslogtreecommitdiff
path: root/spec/features/projects/members/master_adds_member_with_expiration_date_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/features/projects/members/master_adds_member_with_expiration_date_spec.rb')
-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