+
+ assert_recognizes(
+ { :controller => "api/changeset_subscriptions", :action => "create", :changeset_id => "1" },
+ { :path => "/api/0.6/changeset/1/subscribe", :method => :post }
+ )
+ assert_recognizes(
+ { :controller => "api/changeset_subscriptions", :action => "create", :changeset_id => "1", :format => "json" },
+ { :path => "/api/0.6/changeset/1/subscribe.json", :method => :post }
+ )
+ assert_recognizes(
+ { :controller => "api/changeset_subscriptions", :action => "destroy", :changeset_id => "1" },
+ { :path => "/api/0.6/changeset/1/unsubscribe", :method => :post }
+ )
+ assert_recognizes(
+ { :controller => "api/changeset_subscriptions", :action => "destroy", :changeset_id => "1", :format => "json" },
+ { :path => "/api/0.6/changeset/1/unsubscribe.json", :method => :post }
+ )