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

19 lines
620 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/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
2013-03-27 13:04:29 -04:00
end