AutoCommit Don Jul 30 00:03:02 CEST 2015

This commit is contained in:
Andreas Stephanides
2015-07-30 00:03:02 +02:00
parent 068c2a2e55
commit 97df081b33
66 changed files with 1542 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
require "rails_helper"
RSpec.describe Survey::AnswersController, :type => :routing do
describe "routing" do
it "routes to #index" do
expect(:get => "/survey/answers").to route_to("survey/answers#index")
end
it "routes to #new" do
expect(:get => "/survey/answers/new").to route_to("survey/answers#new")
end
it "routes to #show" do
expect(:get => "/survey/answers/1").to route_to("survey/answers#show", :id => "1")
end
it "routes to #edit" do
expect(:get => "/survey/answers/1/edit").to route_to("survey/answers#edit", :id => "1")
end
it "routes to #create" do
expect(:post => "/survey/answers").to route_to("survey/answers#create")
end
it "routes to #update" do
expect(:put => "/survey/answers/1").to route_to("survey/answers#update", :id => "1")
end
it "routes to #destroy" do
expect(:delete => "/survey/answers/1").to route_to("survey/answers#destroy", :id => "1")
end
end
end