Skip to content

Commit

Permalink
Fix meeting spec time
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverguenther committed Nov 27, 2023
1 parent d222381 commit e7fa8d5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/meeting/spec/features/meetings_copy_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
member_with_permissions: { project => permissions })
end

shared_let(:start_time) { Time.current.beginning_of_week.at_noon }
shared_let(:start_time) { Time.current.next_day.at_noon }
shared_let(:duration) { 1.5 }
shared_let(:agenda_text) { "We will talk" }
shared_let(:meeting) do
Expand All @@ -62,7 +62,7 @@

shared_let(:twelve_hour_format) { "%I:%M %p" }
shared_let(:copied_meeting_time_heading) do
date = start_time.next_week.strftime("%m/%d/%Y")
date = (start_time + 1.week).strftime("%m/%d/%Y")
start_of_meeting = start_time.strftime(twelve_hour_format)
end_of_meeting = (start_time + meeting.duration.hours).strftime(twelve_hour_format)

Expand All @@ -73,7 +73,7 @@
login_as user
end

it 'copying a meeting' do
it 'copying a meeting' do
visit project_meetings_path(project)

click_link meeting.title
Expand All @@ -90,7 +90,7 @@
expect(page)
.to have_field 'Duration', with: meeting.duration
expect(page)
.to have_field 'Start date', with: start_time.next_week.strftime("%Y-%m-%d")
.to have_field 'Start date', with: (start_time + 1.week).strftime("%Y-%m-%d")
expect(page)
.to have_field 'Time', with: start_time.strftime("%H:%M")

Expand Down

0 comments on commit e7fa8d5

Please sign in to comment.