debian-mirror-gitlab/spec/routing/notifications_routing_spec.rb

20 lines
753 B
Ruby
Raw Normal View History

2019-12-26 22:10:19 +05:30
# frozen_string_literal: true
2014-09-02 18:07:02 +05:30
require "spec_helper"
2020-07-28 23:09:34 +05:30
RSpec.describe "notifications routing" do
2017-08-17 22:00:37 +05:30
it "routes to #show" do
2021-03-08 18:12:59 +05:30
expect(get("/-/profile/notifications")).to route_to("profiles/notifications#show")
2017-08-17 22:00:37 +05:30
end
2014-09-02 18:07:02 +05:30
2017-08-17 22:00:37 +05:30
it "routes to #update" do
2021-03-08 18:12:59 +05:30
expect(put("/-/profile/notifications")).to route_to("profiles/notifications#update")
2014-09-02 18:07:02 +05:30
end
2020-10-24 23:57:45 +05:30
it 'routes to group #update' do
2022-01-26 12:08:38 +05:30
expect(put("/-/profile/groups/gitlab-org/notifications")).to route_to("profiles/groups#update", id: 'gitlab-org')
expect(put("/-/profile/groups/gitlab.org/notifications/")).to route_to("profiles/groups#update", id: 'gitlab.org')
expect(put("/-/profile/groups/gitlab.org/gitlab/notifications")).to route_to("profiles/groups#update", id: 'gitlab.org/gitlab')
2020-10-24 23:57:45 +05:30
end
2014-09-02 18:07:02 +05:30
end