Sha256: dd637745865780e6011e18ed3551248ca725cdbc0c3512a1d2540f6535fc0c04

Contents?: true

Size: 1.13 KB

Versions: 6

Compression:

Stored size: 1.13 KB

Contents

require "spec_helper"

module Champollion
  RSpec.describe TranslationsController, :type => :routing do
    describe "routing" do

      routes { Champollion::Engine.routes }

      it "routes to #index" do
        expect(:get => "/translations").to route_to("champollion/translations#index")
      end

      it "routes to #new" do
        expect(:get => "/translations/new").to route_to("champollion/translations#new")
      end

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

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

      it "routes to #create" do
        expect(:post => "/translations").to route_to("champollion/translations#create")
      end

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

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

    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
champollion-0.1.7 spec/routing/champollion/translations_routing_spec.rb
champollion-0.1.6 spec/routing/champollion/translations_routing_spec.rb
champollion-0.1.5 spec/routing/champollion/translations_routing_spec.rb
champollion-0.1.2 spec/routing/champollion/translations_routing_spec.rb
champollion-0.1.1 spec/routing/champollion/translations_routing_spec.rb
champollion-0.1.0 spec/routing/champollion/translations_routing_spec.rb