Sha256: acc2085158046670e826ebaf76cd3599a719698d21d115c971f51b7002175d02
Contents?: true
Size: 1.62 KB
Versions: 5
Compression:
Stored size: 1.62 KB
Contents
require 'spec_helper' describe ActionController do include Shoulda::Matchers::ActionController describe "routing with :only => 'recordings'", :type => :routing do it { {:get => "/only-recordings/bigbluebutton/recordings"}. should route_to(:controller => "bigbluebutton/recordings", :action => "index") } it { {:get => "/only-recordings/bigbluebutton/recordings/rec-1/edit"}. should route_to(:controller => "bigbluebutton/recordings", :action => "edit", :id => "rec-1") } it { {:get => "/only-recordings/bigbluebutton/recordings/rec-1"}. should route_to(:controller => "bigbluebutton/recordings", :action => "show", :id => "rec-1") } it { {:put => "/only-recordings/bigbluebutton/recordings/rec-1"}. should route_to(:controller => "bigbluebutton/recordings", :action => "update", :id => "rec-1") } it { {:delete => "/only-recordings/bigbluebutton/recordings/rec-1"}. should route_to(:controller => "bigbluebutton/recordings", :action => "destroy", :id => "rec-1") } it { {:get => "/only-recordings/bigbluebutton/recordings/rec-1/play"}. should route_to(:controller => "bigbluebutton/recordings", :action => "play", :id => "rec-1") } it { {:post => "/only-recordings/bigbluebutton/recordings/rec-1/publish"}. should route_to(:controller => "bigbluebutton/recordings", :action => "publish", :id => "rec-1") } it { {:post => "/only-recordings/bigbluebutton/recordings/rec-1/unpublish"}. should route_to(:controller => "bigbluebutton/recordings", :action => "unpublish", :id => "rec-1") } end end
Version data entries
5 entries across 5 versions & 1 rubygems