Sha256: ef5439a6139e10fe7d5d9dd46c54271ac737999ed8e0f4c37074cd51e197ca1d
Contents?: true
Size: 1.61 KB
Versions: 5
Compression:
Stored size: 1.61 KB
Contents
require 'spec_helper' describe ActionController do include Shoulda::Matchers::ActionController describe "routing with :only => 'recordings'" 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?type=any"}. 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