Sha256: 2a773b3c3574cfa0806738761fbcea158fe11c30235d056b7bfa7dbc7289f676

Contents?: true

Size: 1.44 KB

Versions: 5

Compression:

Stored size: 1.44 KB

Contents

require 'spec_helper'

describe ActionController do
  include Shoulda::Matchers::ActionController

  describe "routing with :only => 'servers'" do

    it {
      {:get => "/only-servers/bigbluebutton/servers"}.
      should route_to(:controller => "bigbluebutton/servers", :action => "index")
    }
    it {
      {:post => "/only-servers/bigbluebutton/servers"}.
      should route_to(:controller => "bigbluebutton/servers", :action => "create")
    }
    it {
      {:get => "/only-servers/bigbluebutton/servers/new"}.
      should route_to(:controller => "bigbluebutton/servers", :action => "new")
    }
    it {
      {:get => "/only-servers/bigbluebutton/servers/1/edit"}.
      should route_to(:controller => "bigbluebutton/servers", :action => "edit", :id => "1")
    }
    it {
      {:get => "/only-servers/bigbluebutton/servers/1"}.
      should route_to(:controller => "bigbluebutton/servers", :action => "show", :id => "1")
    }
    it {
      {:put => "/only-servers/bigbluebutton/servers/1"}.
      should route_to(:controller => "bigbluebutton/servers", :action => "update", :id => "1")
    }
    it {
      {:delete => "/only-servers/bigbluebutton/servers/1"}.
      should route_to(:controller => "bigbluebutton/servers", :action => "destroy", :id => "1")
    }
    it {
      {:get => "/only-servers/bigbluebutton/servers/1/activity"}.
      should route_to(:controller => "bigbluebutton/servers", :action => "activity", :id => "1")
    }

  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

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