gitlab-org--gitlab-foss/spec/routing/notifications_routing_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
753 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2013-03-27 13:04:29 -04:00
require "spec_helper"
RSpec.describe "notifications routing" do
it "routes to #show" do
expect(get("/-/profile/notifications")).to route_to("profiles/notifications#show")
end
2013-03-27 13:04:29 -04:00
it "routes to #update" do
expect(put("/-/profile/notifications")).to route_to("profiles/notifications#update")
2013-03-27 13:04:29 -04:00
end
it 'routes to group #update' do
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')
end
2013-03-27 13:04:29 -04:00
end