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

19 lines
612 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
expect(get("/profile/notifications")).to route_to("profiles/notifications#show")
end
2014-09-02 18:07:02 +05:30
2017-08-17 22:00:37 +05:30
it "routes to #update" do
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
expect(put("/profile/notifications/groups/gitlab-org")).to route_to("profiles/groups#update", id: 'gitlab-org')
expect(put("/profile/notifications/groups/gitlab.org")).to route_to("profiles/groups#update", id: 'gitlab.org')
end
2014-09-02 18:07:02 +05:30
end