Skip to content

Commit

Permalink
Return to original time
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwr18 committed Nov 29, 2023
1 parent ab4f9d0 commit 9bc7258
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/system/dashboard/activity_notifications_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
let(:contributor_without_avatar) { create(:contributor) }
let(:another_contributor) { create(:contributor) }

after { Timecop.return }

it 'displays the activity notifications on dashboard' do
visit dashboard_path(as: user)

Expand Down
3 changes: 3 additions & 0 deletions spec/system/dashboard/index_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
request = create(:request, user: user)
create_list(:message, 2, request: request, sender: contributor)
end

after { Timecop.return }

it 'Shows several useful sections' do
Timecop.travel(Time.current.beginning_of_day + 5.hours)
visit dashboard_path(as: user)
Expand Down
2 changes: 2 additions & 0 deletions spec/system/profile/index_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
current_plan.update(valid_from: Time.current, valid_until: Time.current + 6.months)
end

after { Timecop.return }

it 'allows viewing/updating business plan' do
visit dashboard_path(as: user)

Expand Down

0 comments on commit 9bc7258

Please sign in to comment.