Sha256: 47f6ea8d24eee3cdc1bf812a54845738fdf6a50c5f80e9abff850d0d0eec3417

Contents?: true

Size: 1.08 KB

Versions: 27

Compression:

Stored size: 1.08 KB

Contents

require 'rails_helper'

describe RealizesController do
  describe "routing" do

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

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

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

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

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

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

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

  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
enju_biblio-0.3.4 spec/routing/realizes_routing_spec.rb
enju_biblio-0.3.3 spec/routing/realizes_routing_spec.rb
enju_biblio-0.3.2 spec/routing/realizes_routing_spec.rb
enju_biblio-0.3.1 spec/routing/realizes_routing_spec.rb
enju_biblio-0.3.0 spec/routing/realizes_routing_spec.rb
enju_biblio-0.3.0.rc.1 spec/routing/realizes_routing_spec.rb
enju_biblio-0.3.0.beta.2 spec/routing/realizes_routing_spec.rb