Sha256: b6fecc46168850295381d7eb0e13dc7fbe8d27ece8ccf0e8cada997356074da3
Contents?: true
Size: 1.69 KB
Versions: 3
Compression:
Stored size: 1.69 KB
Contents
require 'spec_helper' describe Bigbluebutton::ServersController do include Shoulda::Matchers::ActionController describe "routing" do # default and scoped routes ['bigbluebutton', 'webconference'].each do |prefix| it { {:get => "/#{prefix}/servers"}. should route_to(:controller => "bigbluebutton/servers", :action => "index") } it { {:post => "/#{prefix}/servers"}. should route_to(:controller => "bigbluebutton/servers", :action => "create") } it { {:get => "/#{prefix}/servers/new"}. should route_to(:controller => "bigbluebutton/servers", :action => "new") } it { {:get => "/#{prefix}/servers/server-1/edit"}. should route_to(:controller => "bigbluebutton/servers", :action => "edit", :id => "server-1") } it { {:get => "/#{prefix}/servers/server-1"}. should route_to(:controller => "bigbluebutton/servers", :action => "show", :id => "server-1") } it { {:put => "/#{prefix}/servers/server-1"}. should route_to(:controller => "bigbluebutton/servers", :action => "update", :id => "server-1") } it { {:delete => "/#{prefix}/servers/server-1"}. should route_to(:controller => "bigbluebutton/servers", :action => "destroy", :id => "server-1") } it { {:get => "/#{prefix}/servers/server-1/activity"}. should route_to(:controller => "bigbluebutton/servers", :action => "activity", :id => "server-1") } it { {:get => "/#{prefix}/servers/server-1/rooms"}. should route_to(:controller => "bigbluebutton/servers", :action => "rooms", :id => "server-1") } end end end
Version data entries
3 entries across 3 versions & 1 rubygems