Sha256: 20cdd8e4335f432d6c14b0ea240ffe7c4a1727fdb57807af9b7d22c245b68753

Contents?: true

Size: 1.64 KB

Versions: 5

Compression:

Stored size: 1.64 KB

Contents

require 'spec_helper'

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

  describe "routing", :type => :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", :type => "any")
      }
      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-3.0.0 spec/routing/bigbluebutton/recordings_routing_spec.rb
bigbluebutton_rails-2.3.0 spec/routing/bigbluebutton/recordings_routing_spec.rb
bigbluebutton_rails-2.2.0 spec/routing/bigbluebutton/recordings_routing_spec.rb
bigbluebutton_rails-2.1.0 spec/routing/bigbluebutton/recordings_routing_spec.rb
bigbluebutton_rails-2.0.0 spec/routing/bigbluebutton/recordings_routing_spec.rb