Sha256: b9e246fc0cd69c46b807d3d46bb195dc73fb44729c134add0ca6bc7bbb7fc43d

Contents?: true

Size: 877 Bytes

Versions: 3

Compression:

Stored size: 877 Bytes

Contents

require 'spec_helper'

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

  describe "routing" do
    it {
      should route(:get, "/bigbluebutton/servers").
      to(:action => :index)
    }
    it {
      should route(:post, "/bigbluebutton/servers").
      to(:action => :create)
    }
    it {
      should route(:get, "/bigbluebutton/servers/new").
      to(:action => :new)
    }
    it {
      should route(:get, "/bigbluebutton/servers/1/edit").
      to(:action => :edit, :id => 1)
    }
    it {
      should route(:get, "/bigbluebutton/servers/1").
      to(:action => :show, :id => 1)
    }
    it {
      should route(:put, "/bigbluebutton/servers/1").
      to(:action => :update, :id => 1)
    }
    it {
      should route(:delete, "/bigbluebutton/servers/1").
      to(:action => :destroy, :id => 1)
    }
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bigbluebutton_rails-0.0.3 spec/routing/bigbluebutton/servers_routing_spec.rb
bigbluebutton_rails-0.0.2 spec/routing/bigbluebutton/servers_routing_spec.rb
bigbluebutton_rails-0.0.1 spec/routing/bigbluebutton/servers_routing_spec.rb