Sha256: 6fecee2ab896f9d9b1d3fddcaf2307879bf7047ee8cee69b61f473962843a5c3

Contents?: true

Size: 1.61 KB

Versions: 5

Compression:

Stored size: 1.61 KB

Contents

require 'spec_helper'

describe Bigbluebutton::RecordingsController do
  include Shoulda::Matchers::ActionController

  describe "routing" do

    # default and scoped routes
    ['bigbluebutton', 'webconference'].each do |prefix|
      it {
        {:get => "/#{prefix}/recordings"}.
        should route_to(:controller => "bigbluebutton/recordings", :action => "index")
      }
      it {
        {:get => "/#{prefix}/recordings/rec-1/edit"}.
        should route_to(:controller => "bigbluebutton/recordings", :action => "edit", :id => "rec-1")
      }
      it {
        {:get => "/#{prefix}/recordings/rec-1"}.
        should route_to(:controller => "bigbluebutton/recordings", :action => "show", :id => "rec-1")
      }
      it {
        {:put => "/#{prefix}/recordings/rec-1"}.
        should route_to(:controller => "bigbluebutton/recordings", :action => "update", :id => "rec-1")
      }
      it {
        {:delete => "/#{prefix}/recordings/rec-1"}.
        should route_to(:controller => "bigbluebutton/recordings", :action => "destroy", :id => "rec-1")
      }
      it {
        {:get => "/#{prefix}/recordings/rec-1/play?type=any"}.
        should route_to(:controller => "bigbluebutton/recordings", :action => "play", :id => "rec-1")
      }
      it {
        {:post => "/#{prefix}/recordings/rec-1/publish"}.
        should route_to(:controller => "bigbluebutton/recordings", :action => "publish", :id => "rec-1")
      }
      it {
        {:post => "/#{prefix}/recordings/rec-1/unpublish"}.
        should route_to(:controller => "bigbluebutton/recordings", :action => "unpublish", :id => "rec-1")
      }
    end

  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
bigbluebutton_rails-1.3.0.mweb1 spec/routing/bigbluebutton/recordings_routing_spec.rb
bigbluebutton_rails-1.4.0 spec/routing/bigbluebutton/recordings_routing_spec.rb
bigbluebutton_rails-1.4.0.beta1 spec/routing/bigbluebutton/recordings_routing_spec.rb
bigbluebutton_rails-1.3.0 spec/routing/bigbluebutton/recordings_routing_spec.rb
bigbluebutton_rails-1.3.0.beta1 spec/routing/bigbluebutton/recordings_routing_spec.rb