Sha256: 5a6e7dcdb70cf7ee2b83fd66c20fbee294f66fba2c8c914b72b831bafcf86176

Contents?: true

Size: 1.17 KB

Versions: 14

Compression:

Stored size: 1.17 KB

Contents

require "spec_helper"

describe PlatformsController do
  describe "routing" do

    it "recognizes and generates #index" do
      { :get => "/platforms" }.should route_to(:controller => "platforms", :action => "index")
    end

    it "recognizes and generates #new" do
      { :get => "/platforms/new" }.should route_to(:controller => "platforms", :action => "new")
    end

    it "recognizes and generates #show" do
      { :get => "/platforms/1" }.should route_to(:controller => "platforms", :action => "show", :id => "1")
    end

    it "recognizes and generates #edit" do
      { :get => "/platforms/1/edit" }.should route_to(:controller => "platforms", :action => "edit", :id => "1")
    end

    it "recognizes and generates #create" do
      { :post => "/platforms" }.should route_to(:controller => "platforms", :action => "create")
    end

    it "recognizes and generates #update" do
      { :put => "/platforms/1" }.should route_to(:controller => "platforms", :action => "update", :id => "1")
    end

    it "recognizes and generates #destroy" do
      { :delete => "/platforms/1" }.should route_to(:controller => "platforms", :action => "destroy", :id => "1")
    end

  end
end

Version data entries

14 entries across 11 versions & 1 rubygems

Version Path
paper_trail_manager-0.6.0 spec/routing/platforms_routing_spec.rb
paper_trail_manager-0.5.0 spec/routing/platforms_routing_spec.rb
paper_trail_manager-0.4.0 spec/routing/platforms_routing_spec.rb
paper_trail_manager-0.3.0 spec/routing/platforms_routing_spec.rb
paper_trail_manager-0.2.0 rails_test/rails-3.0.17/spec/routing/platforms_routing_spec.rb
paper_trail_manager-0.2.0 rails_test/common/spec/routing/platforms_routing_spec.rb
paper_trail_manager-0.2.0 rails_test/rails-3.1.8/spec/routing/platforms_routing_spec.rb
paper_trail_manager-0.2.0 rails_test/rails-3.2.8/spec/routing/platforms_routing_spec.rb
paper_trail_manager-0.1.6 spec/dummy/spec/routing/platforms_routing_spec.rb
paper_trail_manager-0.1.4 spec/dummy/spec/routing/platforms_routing_spec.rb
paper_trail_manager-0.1.3 spec/dummy/spec/routing/platforms_routing_spec.rb
paper_trail_manager-0.1.2 spec/dummy/spec/routing/platforms_routing_spec.rb
paper_trail_manager-0.1.1 spec/dummy/spec/routing/platforms_routing_spec.rb
paper_trail_manager-0.1.0 spec/dummy/spec/routing/platforms_routing_spec.rb