Sha256: 598f240b9d9a6a75486b49d2ebc5cf31c114879300674c7ed9e7ffce03f3a597

Contents?: true

Size: 883 Bytes

Versions: 10

Compression:

Stored size: 883 Bytes

Contents

require "spec_helper"

describe TranslationsController do
  describe "routing" do

    it "routes to #index" do
      get("/translations").should route_to("translations#index")
    end

    it "routes to #new" do
      get("/translations/new").should route_to("translations#new")
    end

    it "routes to #show" do
      get("/translations/1").should route_to("translations#show", :id => "1")
    end

    it "routes to #edit" do
      get("/translations/1/edit").should route_to("translations#edit", :id => "1")
    end

    it "routes to #create" do
      post("/translations").should route_to("translations#create")
    end

    it "routes to #update" do
      put("/translations/1").should route_to("translations#update", :id => "1")
    end

    it "routes to #destroy" do
      delete("/translations/1").should route_to("translations#destroy", :id => "1")
    end

  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
kuztuscms-0.0.10 spec/routing/kuztuscms/translations_routing_spec.rb
kuztuscms-0.0.9 spec/routing/kuztuscms/translations_routing_spec.rb
kuztuscms-0.0.8 spec/routing/kuztuscms/translations_routing_spec.rb
kuztuscms-0.0.7 spec/routing/kuztuscms/translations_routing_spec.rb
kuztuscms-0.0.6 spec/routing/kuztuscms/translations_routing_spec.rb
kuztuscms-0.0.5 spec/routing/kuztuscms/translations_routing_spec.rb
kuztuscms-0.0.4 spec/routing/kuztuscms/translations_routing_spec.rb
kuztuscms-0.0.3 spec/routing/kuztuscms/translations_routing_spec.rb
kuztuscms-0.0.2 spec/routing/kuztuscms/translations_routing_spec.rb
kuztuscms-0.0.1 spec/routing/kuztuscms/translations_routing_spec.rb