From c2b606721ac743e950a4be21278350df2436fc15 Mon Sep 17 00:00:00 2001 From: Nicolae Claudius Date: Fri, 30 Dec 2011 05:27:34 -0800 Subject: [PATCH] clean untouched generated specs --- spec/controllers/aaaas_controller_spec.rb | 157 ------------------ spec/controllers/as_controller_spec.rb | 157 ------------------ spec/controllers/cnames_controller_spec.rb | 157 ------------------ spec/controllers/dashboard_controller_spec.rb | 5 - spec/controllers/domains_controller_spec.rb | 157 ------------------ spec/controllers/hosts_controller_spec.rb | 157 ------------------ spec/controllers/mxes_controller_spec.rb | 157 ------------------ spec/controllers/ns_controller_spec.rb | 157 ------------------ spec/controllers/pages_controller_spec.rb | 5 - .../permissions_controller_spec.rb | 157 ------------------ spec/controllers/soas_controller_spec.rb | 157 ------------------ spec/controllers/srvs_controller_spec.rb | 157 ------------------ spec/controllers/txts_controller_spec.rb | 157 ------------------ spec/helpers/aaaas_helper_spec.rb | 15 -- spec/helpers/as_helper_spec.rb | 15 -- spec/helpers/cnames_helper_spec.rb | 15 -- spec/helpers/dashboard_helper_spec.rb | 15 -- spec/helpers/domains_helper_spec.rb | 15 -- spec/helpers/hosts_helper_spec.rb | 15 -- spec/helpers/mxes_helper_spec.rb | 15 -- spec/helpers/ns_helper_spec.rb | 15 -- spec/helpers/pages_helper_spec.rb | 15 -- spec/helpers/permissions_helper_spec.rb | 15 -- spec/helpers/records_helper_spec.rb | 15 -- spec/helpers/soas_helper_spec.rb | 15 -- spec/helpers/srvs_helper_spec.rb | 15 -- spec/helpers/txts_helper_spec.rb | 15 -- spec/requests/aaaas_spec.rb | 11 -- spec/requests/as_spec.rb | 11 -- spec/requests/cnames_spec.rb | 11 -- spec/requests/domains_spec.rb | 11 -- spec/requests/hosts_spec.rb | 11 -- spec/requests/mxes_spec.rb | 11 -- spec/requests/ns_spec.rb | 11 -- spec/requests/permissions_spec.rb | 11 -- spec/requests/records_spec.rb | 11 -- spec/requests/soas_spec.rb | 11 -- spec/requests/srvs_spec.rb | 11 -- spec/requests/txts_spec.rb | 11 -- spec/views/aaaas/edit.html.erb_spec.rb | 15 -- spec/views/aaaas/index.html.erb_spec.rb | 14 -- spec/views/aaaas/new.html.erb_spec.rb | 15 -- spec/views/aaaas/show.html.erb_spec.rb | 11 -- spec/views/as/edit.html.erb_spec.rb | 15 -- spec/views/as/index.html.erb_spec.rb | 14 -- spec/views/as/new.html.erb_spec.rb | 15 -- spec/views/as/show.html.erb_spec.rb | 11 -- spec/views/cnames/edit.html.erb_spec.rb | 15 -- spec/views/cnames/index.html.erb_spec.rb | 14 -- spec/views/cnames/new.html.erb_spec.rb | 15 -- spec/views/cnames/show.html.erb_spec.rb | 11 -- spec/views/domains/edit.html.erb_spec.rb | 15 -- spec/views/domains/index.html.erb_spec.rb | 14 -- spec/views/domains/new.html.erb_spec.rb | 15 -- spec/views/domains/show.html.erb_spec.rb | 11 -- spec/views/hosts/edit.html.erb_spec.rb | 15 -- spec/views/hosts/index.html.erb_spec.rb | 14 -- spec/views/hosts/new.html.erb_spec.rb | 15 -- spec/views/hosts/show.html.erb_spec.rb | 11 -- spec/views/mxes/edit.html.erb_spec.rb | 15 -- spec/views/mxes/index.html.erb_spec.rb | 14 -- spec/views/mxes/new.html.erb_spec.rb | 15 -- spec/views/mxes/show.html.erb_spec.rb | 11 -- spec/views/ns/edit.html.erb_spec.rb | 15 -- spec/views/ns/index.html.erb_spec.rb | 14 -- spec/views/ns/new.html.erb_spec.rb | 15 -- spec/views/ns/show.html.erb_spec.rb | 11 -- spec/views/permissions/edit.html.erb_spec.rb | 15 -- spec/views/permissions/index.html.erb_spec.rb | 14 -- spec/views/permissions/new.html.erb_spec.rb | 15 -- spec/views/permissions/show.html.erb_spec.rb | 11 -- spec/views/records/edit.html.erb_spec.rb | 15 -- spec/views/records/index.html.erb_spec.rb | 14 -- spec/views/records/new.html.erb_spec.rb | 15 -- spec/views/records/show.html.erb_spec.rb | 11 -- spec/views/soas/edit.html.erb_spec.rb | 15 -- spec/views/soas/index.html.erb_spec.rb | 14 -- spec/views/soas/new.html.erb_spec.rb | 15 -- spec/views/soas/show.html.erb_spec.rb | 11 -- spec/views/srvs/edit.html.erb_spec.rb | 15 -- spec/views/srvs/index.html.erb_spec.rb | 14 -- spec/views/srvs/new.html.erb_spec.rb | 15 -- spec/views/srvs/show.html.erb_spec.rb | 11 -- spec/views/txts/edit.html.erb_spec.rb | 15 -- spec/views/txts/index.html.erb_spec.rb | 14 -- spec/views/txts/new.html.erb_spec.rb | 15 -- spec/views/txts/show.html.erb_spec.rb | 11 -- 87 files changed, 2739 deletions(-) delete mode 100644 spec/controllers/aaaas_controller_spec.rb delete mode 100644 spec/controllers/as_controller_spec.rb delete mode 100644 spec/controllers/cnames_controller_spec.rb delete mode 100644 spec/controllers/dashboard_controller_spec.rb delete mode 100644 spec/controllers/domains_controller_spec.rb delete mode 100644 spec/controllers/hosts_controller_spec.rb delete mode 100644 spec/controllers/mxes_controller_spec.rb delete mode 100644 spec/controllers/ns_controller_spec.rb delete mode 100644 spec/controllers/pages_controller_spec.rb delete mode 100644 spec/controllers/permissions_controller_spec.rb delete mode 100644 spec/controllers/soas_controller_spec.rb delete mode 100644 spec/controllers/srvs_controller_spec.rb delete mode 100644 spec/controllers/txts_controller_spec.rb delete mode 100644 spec/helpers/aaaas_helper_spec.rb delete mode 100644 spec/helpers/as_helper_spec.rb delete mode 100644 spec/helpers/cnames_helper_spec.rb delete mode 100644 spec/helpers/dashboard_helper_spec.rb delete mode 100644 spec/helpers/domains_helper_spec.rb delete mode 100644 spec/helpers/hosts_helper_spec.rb delete mode 100644 spec/helpers/mxes_helper_spec.rb delete mode 100644 spec/helpers/ns_helper_spec.rb delete mode 100644 spec/helpers/pages_helper_spec.rb delete mode 100644 spec/helpers/permissions_helper_spec.rb delete mode 100644 spec/helpers/records_helper_spec.rb delete mode 100644 spec/helpers/soas_helper_spec.rb delete mode 100644 spec/helpers/srvs_helper_spec.rb delete mode 100644 spec/helpers/txts_helper_spec.rb delete mode 100644 spec/requests/aaaas_spec.rb delete mode 100644 spec/requests/as_spec.rb delete mode 100644 spec/requests/cnames_spec.rb delete mode 100644 spec/requests/domains_spec.rb delete mode 100644 spec/requests/hosts_spec.rb delete mode 100644 spec/requests/mxes_spec.rb delete mode 100644 spec/requests/ns_spec.rb delete mode 100644 spec/requests/permissions_spec.rb delete mode 100644 spec/requests/records_spec.rb delete mode 100644 spec/requests/soas_spec.rb delete mode 100644 spec/requests/srvs_spec.rb delete mode 100644 spec/requests/txts_spec.rb delete mode 100644 spec/views/aaaas/edit.html.erb_spec.rb delete mode 100644 spec/views/aaaas/index.html.erb_spec.rb delete mode 100644 spec/views/aaaas/new.html.erb_spec.rb delete mode 100644 spec/views/aaaas/show.html.erb_spec.rb delete mode 100644 spec/views/as/edit.html.erb_spec.rb delete mode 100644 spec/views/as/index.html.erb_spec.rb delete mode 100644 spec/views/as/new.html.erb_spec.rb delete mode 100644 spec/views/as/show.html.erb_spec.rb delete mode 100644 spec/views/cnames/edit.html.erb_spec.rb delete mode 100644 spec/views/cnames/index.html.erb_spec.rb delete mode 100644 spec/views/cnames/new.html.erb_spec.rb delete mode 100644 spec/views/cnames/show.html.erb_spec.rb delete mode 100644 spec/views/domains/edit.html.erb_spec.rb delete mode 100644 spec/views/domains/index.html.erb_spec.rb delete mode 100644 spec/views/domains/new.html.erb_spec.rb delete mode 100644 spec/views/domains/show.html.erb_spec.rb delete mode 100644 spec/views/hosts/edit.html.erb_spec.rb delete mode 100644 spec/views/hosts/index.html.erb_spec.rb delete mode 100644 spec/views/hosts/new.html.erb_spec.rb delete mode 100644 spec/views/hosts/show.html.erb_spec.rb delete mode 100644 spec/views/mxes/edit.html.erb_spec.rb delete mode 100644 spec/views/mxes/index.html.erb_spec.rb delete mode 100644 spec/views/mxes/new.html.erb_spec.rb delete mode 100644 spec/views/mxes/show.html.erb_spec.rb delete mode 100644 spec/views/ns/edit.html.erb_spec.rb delete mode 100644 spec/views/ns/index.html.erb_spec.rb delete mode 100644 spec/views/ns/new.html.erb_spec.rb delete mode 100644 spec/views/ns/show.html.erb_spec.rb delete mode 100644 spec/views/permissions/edit.html.erb_spec.rb delete mode 100644 spec/views/permissions/index.html.erb_spec.rb delete mode 100644 spec/views/permissions/new.html.erb_spec.rb delete mode 100644 spec/views/permissions/show.html.erb_spec.rb delete mode 100644 spec/views/records/edit.html.erb_spec.rb delete mode 100644 spec/views/records/index.html.erb_spec.rb delete mode 100644 spec/views/records/new.html.erb_spec.rb delete mode 100644 spec/views/records/show.html.erb_spec.rb delete mode 100644 spec/views/soas/edit.html.erb_spec.rb delete mode 100644 spec/views/soas/index.html.erb_spec.rb delete mode 100644 spec/views/soas/new.html.erb_spec.rb delete mode 100644 spec/views/soas/show.html.erb_spec.rb delete mode 100644 spec/views/srvs/edit.html.erb_spec.rb delete mode 100644 spec/views/srvs/index.html.erb_spec.rb delete mode 100644 spec/views/srvs/new.html.erb_spec.rb delete mode 100644 spec/views/srvs/show.html.erb_spec.rb delete mode 100644 spec/views/txts/edit.html.erb_spec.rb delete mode 100644 spec/views/txts/index.html.erb_spec.rb delete mode 100644 spec/views/txts/new.html.erb_spec.rb delete mode 100644 spec/views/txts/show.html.erb_spec.rb diff --git a/spec/controllers/aaaas_controller_spec.rb b/spec/controllers/aaaas_controller_spec.rb deleted file mode 100644 index 396c107..0000000 --- a/spec/controllers/aaaas_controller_spec.rb +++ /dev/null @@ -1,157 +0,0 @@ -require 'spec_helper' - -# This spec was generated by rspec-rails when you ran the scaffold generator. -# It demonstrates how one might use RSpec to specify the controller code that -# was generated by Rails when you ran the scaffold generator. -# -# It assumes that the implementation code is generated by the rails scaffold -# generator. If you are using any extension libraries to generate different -# controller code, this generated spec may or may not pass. -# -# It only uses APIs available in rails and/or rspec-rails. There are a number -# of tools you can use to make these specs even more expressive, but we're -# sticking to rails and rspec-rails APIs to keep things simple and stable. -# -# Compared to earlier versions of this generator, there is very limited use of -# stubs and message expectations in this spec. Stubs are only used when there -# is no simpler way to get a handle on the object needed for the example. -# Message expectations are only used when there is no simpler way to specify -# that an instance is receiving a specific message. - -describe AaaasController do - - # This should return the minimal set of attributes required to create a valid - # Aaaa. As you add validations to Aaaa, be sure to - # update the return value of this method accordingly. - def valid_attributes - {} - end - - describe "GET index" do - it "assigns all aaaas as @aaaas" do - aaaa = Aaaa.create! valid_attributes - get :index - assigns(:aaaas).should eq([aaaa]) - end - end - - describe "GET show" do - it "assigns the requested aaaa as @aaaa" do - aaaa = Aaaa.create! valid_attributes - get :show, :id => aaaa.id.to_s - assigns(:aaaa).should eq(aaaa) - end - end - - describe "GET new" do - it "assigns a new aaaa as @aaaa" do - get :new - assigns(:aaaa).should be_a_new(Aaaa) - end - end - - describe "GET edit" do - it "assigns the requested aaaa as @aaaa" do - aaaa = Aaaa.create! valid_attributes - get :edit, :id => aaaa.id.to_s - assigns(:aaaa).should eq(aaaa) - end - end - - describe "POST create" do - describe "with valid params" do - it "creates a new Aaaa" do - expect { - post :create, :aaaa => valid_attributes - }.to change(Aaaa, :count).by(1) - end - - it "assigns a newly created aaaa as @aaaa" do - post :create, :aaaa => valid_attributes - assigns(:aaaa).should be_a(Aaaa) - assigns(:aaaa).should be_persisted - end - - it "redirects to the created aaaa" do - post :create, :aaaa => valid_attributes - response.should redirect_to(Aaaa.last) - end - end - - describe "with invalid params" do - it "assigns a newly created but unsaved aaaa as @aaaa" do - # Trigger the behavior that occurs when invalid params are submitted - Aaaa.any_instance.stub(:save).and_return(false) - post :create, :aaaa => {} - assigns(:aaaa).should be_a_new(Aaaa) - end - - it "re-renders the 'new' template" do - # Trigger the behavior that occurs when invalid params are submitted - Aaaa.any_instance.stub(:save).and_return(false) - post :create, :aaaa => {} - response.should render_template("new") - end - end - end - - describe "PUT update" do - describe "with valid params" do - it "updates the requested aaaa" do - aaaa = Aaaa.create! valid_attributes - # Assuming there are no other aaaas in the database, this - # specifies that the Aaaa created on the previous line - # receives the :update_attributes message with whatever params are - # submitted in the request. - Aaaa.any_instance.should_receive(:update_attributes).with({'these' => 'params'}) - put :update, :id => aaaa.id, :aaaa => {'these' => 'params'} - end - - it "assigns the requested aaaa as @aaaa" do - aaaa = Aaaa.create! valid_attributes - put :update, :id => aaaa.id, :aaaa => valid_attributes - assigns(:aaaa).should eq(aaaa) - end - - it "redirects to the aaaa" do - aaaa = Aaaa.create! valid_attributes - put :update, :id => aaaa.id, :aaaa => valid_attributes - response.should redirect_to(aaaa) - end - end - - describe "with invalid params" do - it "assigns the aaaa as @aaaa" do - aaaa = Aaaa.create! valid_attributes - # Trigger the behavior that occurs when invalid params are submitted - Aaaa.any_instance.stub(:save).and_return(false) - put :update, :id => aaaa.id.to_s, :aaaa => {} - assigns(:aaaa).should eq(aaaa) - end - - it "re-renders the 'edit' template" do - aaaa = Aaaa.create! valid_attributes - # Trigger the behavior that occurs when invalid params are submitted - Aaaa.any_instance.stub(:save).and_return(false) - put :update, :id => aaaa.id.to_s, :aaaa => {} - response.should render_template("edit") - end - end - end - - describe "DELETE destroy" do - it "destroys the requested aaaa" do - aaaa = Aaaa.create! valid_attributes - expect { - delete :destroy, :id => aaaa.id.to_s - }.to change(Aaaa, :count).by(-1) - end - - it "redirects to the aaaas list" do - aaaa = Aaaa.create! valid_attributes - delete :destroy, :id => aaaa.id.to_s - response.should redirect_to(aaaas_url) - end - end - -end diff --git a/spec/controllers/as_controller_spec.rb b/spec/controllers/as_controller_spec.rb deleted file mode 100644 index 532808b..0000000 --- a/spec/controllers/as_controller_spec.rb +++ /dev/null @@ -1,157 +0,0 @@ -require 'spec_helper' - -# This spec was generated by rspec-rails when you ran the scaffold generator. -# It demonstrates how one might use RSpec to specify the controller code that -# was generated by Rails when you ran the scaffold generator. -# -# It assumes that the implementation code is generated by the rails scaffold -# generator. If you are using any extension libraries to generate different -# controller code, this generated spec may or may not pass. -# -# It only uses APIs available in rails and/or rspec-rails. There are a number -# of tools you can use to make these specs even more expressive, but we're -# sticking to rails and rspec-rails APIs to keep things simple and stable. -# -# Compared to earlier versions of this generator, there is very limited use of -# stubs and message expectations in this spec. Stubs are only used when there -# is no simpler way to get a handle on the object needed for the example. -# Message expectations are only used when there is no simpler way to specify -# that an instance is receiving a specific message. - -describe AsController do - - # This should return the minimal set of attributes required to create a valid - # A. As you add validations to A, be sure to - # update the return value of this method accordingly. - def valid_attributes - {} - end - - describe "GET index" do - it "assigns all as as @as" do - a = A.create! valid_attributes - get :index - assigns(:as).should eq([a]) - end - end - - describe "GET show" do - it "assigns the requested a as @a" do - a = A.create! valid_attributes - get :show, :id => a.id.to_s - assigns(:a).should eq(a) - end - end - - describe "GET new" do - it "assigns a new a as @a" do - get :new - assigns(:a).should be_a_new(A) - end - end - - describe "GET edit" do - it "assigns the requested a as @a" do - a = A.create! valid_attributes - get :edit, :id => a.id.to_s - assigns(:a).should eq(a) - end - end - - describe "POST create" do - describe "with valid params" do - it "creates a new A" do - expect { - post :create, :a => valid_attributes - }.to change(A, :count).by(1) - end - - it "assigns a newly created a as @a" do - post :create, :a => valid_attributes - assigns(:a).should be_a(A) - assigns(:a).should be_persisted - end - - it "redirects to the created a" do - post :create, :a => valid_attributes - response.should redirect_to(A.last) - end - end - - describe "with invalid params" do - it "assigns a newly created but unsaved a as @a" do - # Trigger the behavior that occurs when invalid params are submitted - A.any_instance.stub(:save).and_return(false) - post :create, :a => {} - assigns(:a).should be_a_new(A) - end - - it "re-renders the 'new' template" do - # Trigger the behavior that occurs when invalid params are submitted - A.any_instance.stub(:save).and_return(false) - post :create, :a => {} - response.should render_template("new") - end - end - end - - describe "PUT update" do - describe "with valid params" do - it "updates the requested a" do - a = A.create! valid_attributes - # Assuming there are no other as in the database, this - # specifies that the A created on the previous line - # receives the :update_attributes message with whatever params are - # submitted in the request. - A.any_instance.should_receive(:update_attributes).with({'these' => 'params'}) - put :update, :id => a.id, :a => {'these' => 'params'} - end - - it "assigns the requested a as @a" do - a = A.create! valid_attributes - put :update, :id => a.id, :a => valid_attributes - assigns(:a).should eq(a) - end - - it "redirects to the a" do - a = A.create! valid_attributes - put :update, :id => a.id, :a => valid_attributes - response.should redirect_to(a) - end - end - - describe "with invalid params" do - it "assigns the a as @a" do - a = A.create! valid_attributes - # Trigger the behavior that occurs when invalid params are submitted - A.any_instance.stub(:save).and_return(false) - put :update, :id => a.id.to_s, :a => {} - assigns(:a).should eq(a) - end - - it "re-renders the 'edit' template" do - a = A.create! valid_attributes - # Trigger the behavior that occurs when invalid params are submitted - A.any_instance.stub(:save).and_return(false) - put :update, :id => a.id.to_s, :a => {} - response.should render_template("edit") - end - end - end - - describe "DELETE destroy" do - it "destroys the requested a" do - a = A.create! valid_attributes - expect { - delete :destroy, :id => a.id.to_s - }.to change(A, :count).by(-1) - end - - it "redirects to the as list" do - a = A.create! valid_attributes - delete :destroy, :id => a.id.to_s - response.should redirect_to(as_url) - end - end - -end diff --git a/spec/controllers/cnames_controller_spec.rb b/spec/controllers/cnames_controller_spec.rb deleted file mode 100644 index d847ba7..0000000 --- a/spec/controllers/cnames_controller_spec.rb +++ /dev/null @@ -1,157 +0,0 @@ -require 'spec_helper' - -# This spec was generated by rspec-rails when you ran the scaffold generator. -# It demonstrates how one might use RSpec to specify the controller code that -# was generated by Rails when you ran the scaffold generator. -# -# It assumes that the implementation code is generated by the rails scaffold -# generator. If you are using any extension libraries to generate different -# controller code, this generated spec may or may not pass. -# -# It only uses APIs available in rails and/or rspec-rails. There are a number -# of tools you can use to make these specs even more expressive, but we're -# sticking to rails and rspec-rails APIs to keep things simple and stable. -# -# Compared to earlier versions of this generator, there is very limited use of -# stubs and message expectations in this spec. Stubs are only used when there -# is no simpler way to get a handle on the object needed for the example. -# Message expectations are only used when there is no simpler way to specify -# that an instance is receiving a specific message. - -describe CnamesController do - - # This should return the minimal set of attributes required to create a valid - # Cname. As you add validations to Cname, be sure to - # update the return value of this method accordingly. - def valid_attributes - {} - end - - describe "GET index" do - it "assigns all cnames as @cnames" do - cname = Cname.create! valid_attributes - get :index - assigns(:cnames).should eq([cname]) - end - end - - describe "GET show" do - it "assigns the requested cname as @cname" do - cname = Cname.create! valid_attributes - get :show, :id => cname.id.to_s - assigns(:cname).should eq(cname) - end - end - - describe "GET new" do - it "assigns a new cname as @cname" do - get :new - assigns(:cname).should be_a_new(Cname) - end - end - - describe "GET edit" do - it "assigns the requested cname as @cname" do - cname = Cname.create! valid_attributes - get :edit, :id => cname.id.to_s - assigns(:cname).should eq(cname) - end - end - - describe "POST create" do - describe "with valid params" do - it "creates a new Cname" do - expect { - post :create, :cname => valid_attributes - }.to change(Cname, :count).by(1) - end - - it "assigns a newly created cname as @cname" do - post :create, :cname => valid_attributes - assigns(:cname).should be_a(Cname) - assigns(:cname).should be_persisted - end - - it "redirects to the created cname" do - post :create, :cname => valid_attributes - response.should redirect_to(Cname.last) - end - end - - describe "with invalid params" do - it "assigns a newly created but unsaved cname as @cname" do - # Trigger the behavior that occurs when invalid params are submitted - Cname.any_instance.stub(:save).and_return(false) - post :create, :cname => {} - assigns(:cname).should be_a_new(Cname) - end - - it "re-renders the 'new' template" do - # Trigger the behavior that occurs when invalid params are submitted - Cname.any_instance.stub(:save).and_return(false) - post :create, :cname => {} - response.should render_template("new") - end - end - end - - describe "PUT update" do - describe "with valid params" do - it "updates the requested cname" do - cname = Cname.create! valid_attributes - # Assuming there are no other cnames in the database, this - # specifies that the Cname created on the previous line - # receives the :update_attributes message with whatever params are - # submitted in the request. - Cname.any_instance.should_receive(:update_attributes).with({'these' => 'params'}) - put :update, :id => cname.id, :cname => {'these' => 'params'} - end - - it "assigns the requested cname as @cname" do - cname = Cname.create! valid_attributes - put :update, :id => cname.id, :cname => valid_attributes - assigns(:cname).should eq(cname) - end - - it "redirects to the cname" do - cname = Cname.create! valid_attributes - put :update, :id => cname.id, :cname => valid_attributes - response.should redirect_to(cname) - end - end - - describe "with invalid params" do - it "assigns the cname as @cname" do - cname = Cname.create! valid_attributes - # Trigger the behavior that occurs when invalid params are submitted - Cname.any_instance.stub(:save).and_return(false) - put :update, :id => cname.id.to_s, :cname => {} - assigns(:cname).should eq(cname) - end - - it "re-renders the 'edit' template" do - cname = Cname.create! valid_attributes - # Trigger the behavior that occurs when invalid params are submitted - Cname.any_instance.stub(:save).and_return(false) - put :update, :id => cname.id.to_s, :cname => {} - response.should render_template("edit") - end - end - end - - describe "DELETE destroy" do - it "destroys the requested cname" do - cname = Cname.create! valid_attributes - expect { - delete :destroy, :id => cname.id.to_s - }.to change(Cname, :count).by(-1) - end - - it "redirects to the cnames list" do - cname = Cname.create! valid_attributes - delete :destroy, :id => cname.id.to_s - response.should redirect_to(cnames_url) - end - end - -end diff --git a/spec/controllers/dashboard_controller_spec.rb b/spec/controllers/dashboard_controller_spec.rb deleted file mode 100644 index 4afb3a6..0000000 --- a/spec/controllers/dashboard_controller_spec.rb +++ /dev/null @@ -1,5 +0,0 @@ -require 'spec_helper' - -describe DashboardController do - -end diff --git a/spec/controllers/domains_controller_spec.rb b/spec/controllers/domains_controller_spec.rb deleted file mode 100644 index c1f4cb7..0000000 --- a/spec/controllers/domains_controller_spec.rb +++ /dev/null @@ -1,157 +0,0 @@ -require 'spec_helper' - -# This spec was generated by rspec-rails when you ran the scaffold generator. -# It demonstrates how one might use RSpec to specify the controller code that -# was generated by Rails when you ran the scaffold generator. -# -# It assumes that the implementation code is generated by the rails scaffold -# generator. If you are using any extension libraries to generate different -# controller code, this generated spec may or may not pass. -# -# It only uses APIs available in rails and/or rspec-rails. There are a number -# of tools you can use to make these specs even more expressive, but we're -# sticking to rails and rspec-rails APIs to keep things simple and stable. -# -# Compared to earlier versions of this generator, there is very limited use of -# stubs and message expectations in this spec. Stubs are only used when there -# is no simpler way to get a handle on the object needed for the example. -# Message expectations are only used when there is no simpler way to specify -# that an instance is receiving a specific message. - -describe DomainsController do - - # This should return the minimal set of attributes required to create a valid - # Domain. As you add validations to Domain, be sure to - # update the return value of this method accordingly. - def valid_attributes - {} - end - - describe "GET index" do - it "assigns all domains as @domains" do - domain = Domain.create! valid_attributes - get :index - assigns(:domains).should eq([domain]) - end - end - - describe "GET show" do - it "assigns the requested domain as @domain" do - domain = Domain.create! valid_attributes - get :show, :id => domain.id.to_s - assigns(:domain).should eq(domain) - end - end - - describe "GET new" do - it "assigns a new domain as @domain" do - get :new - assigns(:domain).should be_a_new(Domain) - end - end - - describe "GET edit" do - it "assigns the requested domain as @domain" do - domain = Domain.create! valid_attributes - get :edit, :id => domain.id.to_s - assigns(:domain).should eq(domain) - end - end - - describe "POST create" do - describe "with valid params" do - it "creates a new Domain" do - expect { - post :create, :domain => valid_attributes - }.to change(Domain, :count).by(1) - end - - it "assigns a newly created domain as @domain" do - post :create, :domain => valid_attributes - assigns(:domain).should be_a(Domain) - assigns(:domain).should be_persisted - end - - it "redirects to the created domain" do - post :create, :domain => valid_attributes - response.should redirect_to(Domain.last) - end - end - - describe "with invalid params" do - it "assigns a newly created but unsaved domain as @domain" do - # Trigger the behavior that occurs when invalid params are submitted - Domain.any_instance.stub(:save).and_return(false) - post :create, :domain => {} - assigns(:domain).should be_a_new(Domain) - end - - it "re-renders the 'new' template" do - # Trigger the behavior that occurs when invalid params are submitted - Domain.any_instance.stub(:save).and_return(false) - post :create, :domain => {} - response.should render_template("new") - end - end - end - - describe "PUT update" do - describe "with valid params" do - it "updates the requested domain" do - domain = Domain.create! valid_attributes - # Assuming there are no other domains in the database, this - # specifies that the Domain created on the previous line - # receives the :update_attributes message with whatever params are - # submitted in the request. - Domain.any_instance.should_receive(:update_attributes).with({'these' => 'params'}) - put :update, :id => domain.id, :domain => {'these' => 'params'} - end - - it "assigns the requested domain as @domain" do - domain = Domain.create! valid_attributes - put :update, :id => domain.id, :domain => valid_attributes - assigns(:domain).should eq(domain) - end - - it "redirects to the domain" do - domain = Domain.create! valid_attributes - put :update, :id => domain.id, :domain => valid_attributes - response.should redirect_to(domain) - end - end - - describe "with invalid params" do - it "assigns the domain as @domain" do - domain = Domain.create! valid_attributes - # Trigger the behavior that occurs when invalid params are submitted - Domain.any_instance.stub(:save).and_return(false) - put :update, :id => domain.id.to_s, :domain => {} - assigns(:domain).should eq(domain) - end - - it "re-renders the 'edit' template" do - domain = Domain.create! valid_attributes - # Trigger the behavior that occurs when invalid params are submitted - Domain.any_instance.stub(:save).and_return(false) - put :update, :id => domain.id.to_s, :domain => {} - response.should render_template("edit") - end - end - end - - describe "DELETE destroy" do - it "destroys the requested domain" do - domain = Domain.create! valid_attributes - expect { - delete :destroy, :id => domain.id.to_s - }.to change(Domain, :count).by(-1) - end - - it "redirects to the domains list" do - domain = Domain.create! valid_attributes - delete :destroy, :id => domain.id.to_s - response.should redirect_to(domains_url) - end - end - -end diff --git a/spec/controllers/hosts_controller_spec.rb b/spec/controllers/hosts_controller_spec.rb deleted file mode 100644 index 8d9b9a9..0000000 --- a/spec/controllers/hosts_controller_spec.rb +++ /dev/null @@ -1,157 +0,0 @@ -require 'spec_helper' - -# This spec was generated by rspec-rails when you ran the scaffold generator. -# It demonstrates how one might use RSpec to specify the controller code that -# was generated by Rails when you ran the scaffold generator. -# -# It assumes that the implementation code is generated by the rails scaffold -# generator. If you are using any extension libraries to generate different -# controller code, this generated spec may or may not pass. -# -# It only uses APIs available in rails and/or rspec-rails. There are a number -# of tools you can use to make these specs even more expressive, but we're -# sticking to rails and rspec-rails APIs to keep things simple and stable. -# -# Compared to earlier versions of this generator, there is very limited use of -# stubs and message expectations in this spec. Stubs are only used when there -# is no simpler way to get a handle on the object needed for the example. -# Message expectations are only used when there is no simpler way to specify -# that an instance is receiving a specific message. - -describe HostsController do - - # This should return the minimal set of attributes required to create a valid - # Host. As you add validations to Host, be sure to - # update the return value of this method accordingly. - def valid_attributes - {} - end - - describe "GET index" do - it "assigns all hosts as @hosts" do - host = Host.create! valid_attributes - get :index - assigns(:hosts).should eq([host]) - end - end - - describe "GET show" do - it "assigns the requested host as @host" do - host = Host.create! valid_attributes - get :show, :id => host.id.to_s - assigns(:host).should eq(host) - end - end - - describe "GET new" do - it "assigns a new host as @host" do - get :new - assigns(:host).should be_a_new(Host) - end - end - - describe "GET edit" do - it "assigns the requested host as @host" do - host = Host.create! valid_attributes - get :edit, :id => host.id.to_s - assigns(:host).should eq(host) - end - end - - describe "POST create" do - describe "with valid params" do - it "creates a new Host" do - expect { - post :create, :host => valid_attributes - }.to change(Host, :count).by(1) - end - - it "assigns a newly created host as @host" do - post :create, :host => valid_attributes - assigns(:host).should be_a(Host) - assigns(:host).should be_persisted - end - - it "redirects to the created host" do - post :create, :host => valid_attributes - response.should redirect_to(Host.last) - end - end - - describe "with invalid params" do - it "assigns a newly created but unsaved host as @host" do - # Trigger the behavior that occurs when invalid params are submitted - Host.any_instance.stub(:save).and_return(false) - post :create, :host => {} - assigns(:host).should be_a_new(Host) - end - - it "re-renders the 'new' template" do - # Trigger the behavior that occurs when invalid params are submitted - Host.any_instance.stub(:save).and_return(false) - post :create, :host => {} - response.should render_template("new") - end - end - end - - describe "PUT update" do - describe "with valid params" do - it "updates the requested host" do - host = Host.create! valid_attributes - # Assuming there are no other hosts in the database, this - # specifies that the Host created on the previous line - # receives the :update_attributes message with whatever params are - # submitted in the request. - Host.any_instance.should_receive(:update_attributes).with({'these' => 'params'}) - put :update, :id => host.id, :host => {'these' => 'params'} - end - - it "assigns the requested host as @host" do - host = Host.create! valid_attributes - put :update, :id => host.id, :host => valid_attributes - assigns(:host).should eq(host) - end - - it "redirects to the host" do - host = Host.create! valid_attributes - put :update, :id => host.id, :host => valid_attributes - response.should redirect_to(host) - end - end - - describe "with invalid params" do - it "assigns the host as @host" do - host = Host.create! valid_attributes - # Trigger the behavior that occurs when invalid params are submitted - Host.any_instance.stub(:save).and_return(false) - put :update, :id => host.id.to_s, :host => {} - assigns(:host).should eq(host) - end - - it "re-renders the 'edit' template" do - host = Host.create! valid_attributes - # Trigger the behavior that occurs when invalid params are submitted - Host.any_instance.stub(:save).and_return(false) - put :update, :id => host.id.to_s, :host => {} - response.should render_template("edit") - end - end - end - - describe "DELETE destroy" do - it "destroys the requested host" do - host = Host.create! valid_attributes - expect { - delete :destroy, :id => host.id.to_s - }.to change(Host, :count).by(-1) - end - - it "redirects to the hosts list" do - host = Host.create! valid_attributes - delete :destroy, :id => host.id.to_s - response.should redirect_to(hosts_url) - end - end - -end diff --git a/spec/controllers/mxes_controller_spec.rb b/spec/controllers/mxes_controller_spec.rb deleted file mode 100644 index bee4dd2..0000000 --- a/spec/controllers/mxes_controller_spec.rb +++ /dev/null @@ -1,157 +0,0 @@ -require 'spec_helper' - -# This spec was generated by rspec-rails when you ran the scaffold generator. -# It demonstrates how one might use RSpec to specify the controller code that -# was generated by Rails when you ran the scaffold generator. -# -# It assumes that the implementation code is generated by the rails scaffold -# generator. If you are using any extension libraries to generate different -# controller code, this generated spec may or may not pass. -# -# It only uses APIs available in rails and/or rspec-rails. There are a number -# of tools you can use to make these specs even more expressive, but we're -# sticking to rails and rspec-rails APIs to keep things simple and stable. -# -# Compared to earlier versions of this generator, there is very limited use of -# stubs and message expectations in this spec. Stubs are only used when there -# is no simpler way to get a handle on the object needed for the example. -# Message expectations are only used when there is no simpler way to specify -# that an instance is receiving a specific message. - -describe MxesController do - - # This should return the minimal set of attributes required to create a valid - # Mx. As you add validations to Mx, be sure to - # update the return value of this method accordingly. - def valid_attributes - {} - end - - describe "GET index" do - it "assigns all mxes as @mxes" do - mx = Mx.create! valid_attributes - get :index - assigns(:mxes).should eq([mx]) - end - end - - describe "GET show" do - it "assigns the requested mx as @mx" do - mx = Mx.create! valid_attributes - get :show, :id => mx.id.to_s - assigns(:mx).should eq(mx) - end - end - - describe "GET new" do - it "assigns a new mx as @mx" do - get :new - assigns(:mx).should be_a_new(Mx) - end - end - - describe "GET edit" do - it "assigns the requested mx as @mx" do - mx = Mx.create! valid_attributes - get :edit, :id => mx.id.to_s - assigns(:mx).should eq(mx) - end - end - - describe "POST create" do - describe "with valid params" do - it "creates a new Mx" do - expect { - post :create, :mx => valid_attributes - }.to change(Mx, :count).by(1) - end - - it "assigns a newly created mx as @mx" do - post :create, :mx => valid_attributes - assigns(:mx).should be_a(Mx) - assigns(:mx).should be_persisted - end - - it "redirects to the created mx" do - post :create, :mx => valid_attributes - response.should redirect_to(Mx.last) - end - end - - describe "with invalid params" do - it "assigns a newly created but unsaved mx as @mx" do - # Trigger the behavior that occurs when invalid params are submitted - Mx.any_instance.stub(:save).and_return(false) - post :create, :mx => {} - assigns(:mx).should be_a_new(Mx) - end - - it "re-renders the 'new' template" do - # Trigger the behavior that occurs when invalid params are submitted - Mx.any_instance.stub(:save).and_return(false) - post :create, :mx => {} - response.should render_template("new") - end - end - end - - describe "PUT update" do - describe "with valid params" do - it "updates the requested mx" do - mx = Mx.create! valid_attributes - # Assuming there are no other mxes in the database, this - # specifies that the Mx created on the previous line - # receives the :update_attributes message with whatever params are - # submitted in the request. - Mx.any_instance.should_receive(:update_attributes).with({'these' => 'params'}) - put :update, :id => mx.id, :mx => {'these' => 'params'} - end - - it "assigns the requested mx as @mx" do - mx = Mx.create! valid_attributes - put :update, :id => mx.id, :mx => valid_attributes - assigns(:mx).should eq(mx) - end - - it "redirects to the mx" do - mx = Mx.create! valid_attributes - put :update, :id => mx.id, :mx => valid_attributes - response.should redirect_to(mx) - end - end - - describe "with invalid params" do - it "assigns the mx as @mx" do - mx = Mx.create! valid_attributes - # Trigger the behavior that occurs when invalid params are submitted - Mx.any_instance.stub(:save).and_return(false) - put :update, :id => mx.id.to_s, :mx => {} - assigns(:mx).should eq(mx) - end - - it "re-renders the 'edit' template" do - mx = Mx.create! valid_attributes - # Trigger the behavior that occurs when invalid params are submitted - Mx.any_instance.stub(:save).and_return(false) - put :update, :id => mx.id.to_s, :mx => {} - response.should render_template("edit") - end - end - end - - describe "DELETE destroy" do - it "destroys the requested mx" do - mx = Mx.create! valid_attributes - expect { - delete :destroy, :id => mx.id.to_s - }.to change(Mx, :count).by(-1) - end - - it "redirects to the mxes list" do - mx = Mx.create! valid_attributes - delete :destroy, :id => mx.id.to_s - response.should redirect_to(mxes_url) - end - end - -end diff --git a/spec/controllers/ns_controller_spec.rb b/spec/controllers/ns_controller_spec.rb deleted file mode 100644 index c518042..0000000 --- a/spec/controllers/ns_controller_spec.rb +++ /dev/null @@ -1,157 +0,0 @@ -require 'spec_helper' - -# This spec was generated by rspec-rails when you ran the scaffold generator. -# It demonstrates how one might use RSpec to specify the controller code that -# was generated by Rails when you ran the scaffold generator. -# -# It assumes that the implementation code is generated by the rails scaffold -# generator. If you are using any extension libraries to generate different -# controller code, this generated spec may or may not pass. -# -# It only uses APIs available in rails and/or rspec-rails. There are a number -# of tools you can use to make these specs even more expressive, but we're -# sticking to rails and rspec-rails APIs to keep things simple and stable. -# -# Compared to earlier versions of this generator, there is very limited use of -# stubs and message expectations in this spec. Stubs are only used when there -# is no simpler way to get a handle on the object needed for the example. -# Message expectations are only used when there is no simpler way to specify -# that an instance is receiving a specific message. - -describe NsController do - - # This should return the minimal set of attributes required to create a valid - # Ns. As you add validations to Ns, be sure to - # update the return value of this method accordingly. - def valid_attributes - {} - end - - describe "GET index" do - it "assigns all ns as @ns" do - ns = Ns.create! valid_attributes - get :index - assigns(:ns).should eq([ns]) - end - end - - describe "GET show" do - it "assigns the requested ns as @ns" do - ns = Ns.create! valid_attributes - get :show, :id => ns.id.to_s - assigns(:ns).should eq(ns) - end - end - - describe "GET new" do - it "assigns a new ns as @ns" do - get :new - assigns(:ns).should be_a_new(Ns) - end - end - - describe "GET edit" do - it "assigns the requested ns as @ns" do - ns = Ns.create! valid_attributes - get :edit, :id => ns.id.to_s - assigns(:ns).should eq(ns) - end - end - - describe "POST create" do - describe "with valid params" do - it "creates a new Ns" do - expect { - post :create, :ns => valid_attributes - }.to change(Ns, :count).by(1) - end - - it "assigns a newly created ns as @ns" do - post :create, :ns => valid_attributes - assigns(:ns).should be_a(Ns) - assigns(:ns).should be_persisted - end - - it "redirects to the created ns" do - post :create, :ns => valid_attributes - response.should redirect_to(Ns.last) - end - end - - describe "with invalid params" do - it "assigns a newly created but unsaved ns as @ns" do - # Trigger the behavior that occurs when invalid params are submitted - Ns.any_instance.stub(:save).and_return(false) - post :create, :ns => {} - assigns(:ns).should be_a_new(Ns) - end - - it "re-renders the 'new' template" do - # Trigger the behavior that occurs when invalid params are submitted - Ns.any_instance.stub(:save).and_return(false) - post :create, :ns => {} - response.should render_template("new") - end - end - end - - describe "PUT update" do - describe "with valid params" do - it "updates the requested ns" do - ns = Ns.create! valid_attributes - # Assuming there are no other ns in the database, this - # specifies that the Ns created on the previous line - # receives the :update_attributes message with whatever params are - # submitted in the request. - Ns.any_instance.should_receive(:update_attributes).with({'these' => 'params'}) - put :update, :id => ns.id, :ns => {'these' => 'params'} - end - - it "assigns the requested ns as @ns" do - ns = Ns.create! valid_attributes - put :update, :id => ns.id, :ns => valid_attributes - assigns(:ns).should eq(ns) - end - - it "redirects to the ns" do - ns = Ns.create! valid_attributes - put :update, :id => ns.id, :ns => valid_attributes - response.should redirect_to(ns) - end - end - - describe "with invalid params" do - it "assigns the ns as @ns" do - ns = Ns.create! valid_attributes - # Trigger the behavior that occurs when invalid params are submitted - Ns.any_instance.stub(:save).and_return(false) - put :update, :id => ns.id.to_s, :ns => {} - assigns(:ns).should eq(ns) - end - - it "re-renders the 'edit' template" do - ns = Ns.create! valid_attributes - # Trigger the behavior that occurs when invalid params are submitted - Ns.any_instance.stub(:save).and_return(false) - put :update, :id => ns.id.to_s, :ns => {} - response.should render_template("edit") - end - end - end - - describe "DELETE destroy" do - it "destroys the requested ns" do - ns = Ns.create! valid_attributes - expect { - delete :destroy, :id => ns.id.to_s - }.to change(Ns, :count).by(-1) - end - - it "redirects to the ns list" do - ns = Ns.create! valid_attributes - delete :destroy, :id => ns.id.to_s - response.should redirect_to(ns_index_url) - end - end - -end diff --git a/spec/controllers/pages_controller_spec.rb b/spec/controllers/pages_controller_spec.rb deleted file mode 100644 index 9c1cf55..0000000 --- a/spec/controllers/pages_controller_spec.rb +++ /dev/null @@ -1,5 +0,0 @@ -require 'spec_helper' - -describe PagesController do - -end diff --git a/spec/controllers/permissions_controller_spec.rb b/spec/controllers/permissions_controller_spec.rb deleted file mode 100644 index aab7557..0000000 --- a/spec/controllers/permissions_controller_spec.rb +++ /dev/null @@ -1,157 +0,0 @@ -require 'spec_helper' - -# This spec was generated by rspec-rails when you ran the scaffold generator. -# It demonstrates how one might use RSpec to specify the controller code that -# was generated by Rails when you ran the scaffold generator. -# -# It assumes that the implementation code is generated by the rails scaffold -# generator. If you are using any extension libraries to generate different -# controller code, this generated spec may or may not pass. -# -# It only uses APIs available in rails and/or rspec-rails. There are a number -# of tools you can use to make these specs even more expressive, but we're -# sticking to rails and rspec-rails APIs to keep things simple and stable. -# -# Compared to earlier versions of this generator, there is very limited use of -# stubs and message expectations in this spec. Stubs are only used when there -# is no simpler way to get a handle on the object needed for the example. -# Message expectations are only used when there is no simpler way to specify -# that an instance is receiving a specific message. - -describe PermissionsController do - - # This should return the minimal set of attributes required to create a valid - # Permission. As you add validations to Permission, be sure to - # update the return value of this method accordingly. - def valid_attributes - {} - end - - describe "GET index" do - it "assigns all permissions as @permissions" do - permission = Permission.create! valid_attributes - get :index - assigns(:permissions).should eq([permission]) - end - end - - describe "GET show" do - it "assigns the requested permission as @permission" do - permission = Permission.create! valid_attributes - get :show, :id => permission.id.to_s - assigns(:permission).should eq(permission) - end - end - - describe "GET new" do - it "assigns a new permission as @permission" do - get :new - assigns(:permission).should be_a_new(Permission) - end - end - - describe "GET edit" do - it "assigns the requested permission as @permission" do - permission = Permission.create! valid_attributes - get :edit, :id => permission.id.to_s - assigns(:permission).should eq(permission) - end - end - - describe "POST create" do - describe "with valid params" do - it "creates a new Permission" do - expect { - post :create, :permission => valid_attributes - }.to change(Permission, :count).by(1) - end - - it "assigns a newly created permission as @permission" do - post :create, :permission => valid_attributes - assigns(:permission).should be_a(Permission) - assigns(:permission).should be_persisted - end - - it "redirects to the created permission" do - post :create, :permission => valid_attributes - response.should redirect_to(Permission.last) - end - end - - describe "with invalid params" do - it "assigns a newly created but unsaved permission as @permission" do - # Trigger the behavior that occurs when invalid params are submitted - Permission.any_instance.stub(:save).and_return(false) - post :create, :permission => {} - assigns(:permission).should be_a_new(Permission) - end - - it "re-renders the 'new' template" do - # Trigger the behavior that occurs when invalid params are submitted - Permission.any_instance.stub(:save).and_return(false) - post :create, :permission => {} - response.should render_template("new") - end - end - end - - describe "PUT update" do - describe "with valid params" do - it "updates the requested permission" do - permission = Permission.create! valid_attributes - # Assuming there are no other permissions in the database, this - # specifies that the Permission created on the previous line - # receives the :update_attributes message with whatever params are - # submitted in the request. - Permission.any_instance.should_receive(:update_attributes).with({'these' => 'params'}) - put :update, :id => permission.id, :permission => {'these' => 'params'} - end - - it "assigns the requested permission as @permission" do - permission = Permission.create! valid_attributes - put :update, :id => permission.id, :permission => valid_attributes - assigns(:permission).should eq(permission) - end - - it "redirects to the permission" do - permission = Permission.create! valid_attributes - put :update, :id => permission.id, :permission => valid_attributes - response.should redirect_to(permission) - end - end - - describe "with invalid params" do - it "assigns the permission as @permission" do - permission = Permission.create! valid_attributes - # Trigger the behavior that occurs when invalid params are submitted - Permission.any_instance.stub(:save).and_return(false) - put :update, :id => permission.id.to_s, :permission => {} - assigns(:permission).should eq(permission) - end - - it "re-renders the 'edit' template" do - permission = Permission.create! valid_attributes - # Trigger the behavior that occurs when invalid params are submitted - Permission.any_instance.stub(:save).and_return(false) - put :update, :id => permission.id.to_s, :permission => {} - response.should render_template("edit") - end - end - end - - describe "DELETE destroy" do - it "destroys the requested permission" do - permission = Permission.create! valid_attributes - expect { - delete :destroy, :id => permission.id.to_s - }.to change(Permission, :count).by(-1) - end - - it "redirects to the permissions list" do - permission = Permission.create! valid_attributes - delete :destroy, :id => permission.id.to_s - response.should redirect_to(permissions_url) - end - end - -end diff --git a/spec/controllers/soas_controller_spec.rb b/spec/controllers/soas_controller_spec.rb deleted file mode 100644 index 28a1e43..0000000 --- a/spec/controllers/soas_controller_spec.rb +++ /dev/null @@ -1,157 +0,0 @@ -require 'spec_helper' - -# This spec was generated by rspec-rails when you ran the scaffold generator. -# It demonstrates how one might use RSpec to specify the controller code that -# was generated by Rails when you ran the scaffold generator. -# -# It assumes that the implementation code is generated by the rails scaffold -# generator. If you are using any extension libraries to generate different -# controller code, this generated spec may or may not pass. -# -# It only uses APIs available in rails and/or rspec-rails. There are a number -# of tools you can use to make these specs even more expressive, but we're -# sticking to rails and rspec-rails APIs to keep things simple and stable. -# -# Compared to earlier versions of this generator, there is very limited use of -# stubs and message expectations in this spec. Stubs are only used when there -# is no simpler way to get a handle on the object needed for the example. -# Message expectations are only used when there is no simpler way to specify -# that an instance is receiving a specific message. - -describe SoasController do - - # This should return the minimal set of attributes required to create a valid - # Soa. As you add validations to Soa, be sure to - # update the return value of this method accordingly. - def valid_attributes - {} - end - - describe "GET index" do - it "assigns all soas as @soas" do - soa = Soa.create! valid_attributes - get :index - assigns(:soas).should eq([soa]) - end - end - - describe "GET show" do - it "assigns the requested soa as @soa" do - soa = Soa.create! valid_attributes - get :show, :id => soa.id.to_s - assigns(:soa).should eq(soa) - end - end - - describe "GET new" do - it "assigns a new soa as @soa" do - get :new - assigns(:soa).should be_a_new(Soa) - end - end - - describe "GET edit" do - it "assigns the requested soa as @soa" do - soa = Soa.create! valid_attributes - get :edit, :id => soa.id.to_s - assigns(:soa).should eq(soa) - end - end - - describe "POST create" do - describe "with valid params" do - it "creates a new Soa" do - expect { - post :create, :soa => valid_attributes - }.to change(Soa, :count).by(1) - end - - it "assigns a newly created soa as @soa" do - post :create, :soa => valid_attributes - assigns(:soa).should be_a(Soa) - assigns(:soa).should be_persisted - end - - it "redirects to the created soa" do - post :create, :soa => valid_attributes - response.should redirect_to(Soa.last) - end - end - - describe "with invalid params" do - it "assigns a newly created but unsaved soa as @soa" do - # Trigger the behavior that occurs when invalid params are submitted - Soa.any_instance.stub(:save).and_return(false) - post :create, :soa => {} - assigns(:soa).should be_a_new(Soa) - end - - it "re-renders the 'new' template" do - # Trigger the behavior that occurs when invalid params are submitted - Soa.any_instance.stub(:save).and_return(false) - post :create, :soa => {} - response.should render_template("new") - end - end - end - - describe "PUT update" do - describe "with valid params" do - it "updates the requested soa" do - soa = Soa.create! valid_attributes - # Assuming there are no other soas in the database, this - # specifies that the Soa created on the previous line - # receives the :update_attributes message with whatever params are - # submitted in the request. - Soa.any_instance.should_receive(:update_attributes).with({'these' => 'params'}) - put :update, :id => soa.id, :soa => {'these' => 'params'} - end - - it "assigns the requested soa as @soa" do - soa = Soa.create! valid_attributes - put :update, :id => soa.id, :soa => valid_attributes - assigns(:soa).should eq(soa) - end - - it "redirects to the soa" do - soa = Soa.create! valid_attributes - put :update, :id => soa.id, :soa => valid_attributes - response.should redirect_to(soa) - end - end - - describe "with invalid params" do - it "assigns the soa as @soa" do - soa = Soa.create! valid_attributes - # Trigger the behavior that occurs when invalid params are submitted - Soa.any_instance.stub(:save).and_return(false) - put :update, :id => soa.id.to_s, :soa => {} - assigns(:soa).should eq(soa) - end - - it "re-renders the 'edit' template" do - soa = Soa.create! valid_attributes - # Trigger the behavior that occurs when invalid params are submitted - Soa.any_instance.stub(:save).and_return(false) - put :update, :id => soa.id.to_s, :soa => {} - response.should render_template("edit") - end - end - end - - describe "DELETE destroy" do - it "destroys the requested soa" do - soa = Soa.create! valid_attributes - expect { - delete :destroy, :id => soa.id.to_s - }.to change(Soa, :count).by(-1) - end - - it "redirects to the soas list" do - soa = Soa.create! valid_attributes - delete :destroy, :id => soa.id.to_s - response.should redirect_to(soas_url) - end - end - -end diff --git a/spec/controllers/srvs_controller_spec.rb b/spec/controllers/srvs_controller_spec.rb deleted file mode 100644 index b830048..0000000 --- a/spec/controllers/srvs_controller_spec.rb +++ /dev/null @@ -1,157 +0,0 @@ -require 'spec_helper' - -# This spec was generated by rspec-rails when you ran the scaffold generator. -# It demonstrates how one might use RSpec to specify the controller code that -# was generated by Rails when you ran the scaffold generator. -# -# It assumes that the implementation code is generated by the rails scaffold -# generator. If you are using any extension libraries to generate different -# controller code, this generated spec may or may not pass. -# -# It only uses APIs available in rails and/or rspec-rails. There are a number -# of tools you can use to make these specs even more expressive, but we're -# sticking to rails and rspec-rails APIs to keep things simple and stable. -# -# Compared to earlier versions of this generator, there is very limited use of -# stubs and message expectations in this spec. Stubs are only used when there -# is no simpler way to get a handle on the object needed for the example. -# Message expectations are only used when there is no simpler way to specify -# that an instance is receiving a specific message. - -describe SrvsController do - - # This should return the minimal set of attributes required to create a valid - # Srv. As you add validations to Srv, be sure to - # update the return value of this method accordingly. - def valid_attributes - {} - end - - describe "GET index" do - it "assigns all srvs as @srvs" do - srv = Srv.create! valid_attributes - get :index - assigns(:srvs).should eq([srv]) - end - end - - describe "GET show" do - it "assigns the requested srv as @srv" do - srv = Srv.create! valid_attributes - get :show, :id => srv.id.to_s - assigns(:srv).should eq(srv) - end - end - - describe "GET new" do - it "assigns a new srv as @srv" do - get :new - assigns(:srv).should be_a_new(Srv) - end - end - - describe "GET edit" do - it "assigns the requested srv as @srv" do - srv = Srv.create! valid_attributes - get :edit, :id => srv.id.to_s - assigns(:srv).should eq(srv) - end - end - - describe "POST create" do - describe "with valid params" do - it "creates a new Srv" do - expect { - post :create, :srv => valid_attributes - }.to change(Srv, :count).by(1) - end - - it "assigns a newly created srv as @srv" do - post :create, :srv => valid_attributes - assigns(:srv).should be_a(Srv) - assigns(:srv).should be_persisted - end - - it "redirects to the created srv" do - post :create, :srv => valid_attributes - response.should redirect_to(Srv.last) - end - end - - describe "with invalid params" do - it "assigns a newly created but unsaved srv as @srv" do - # Trigger the behavior that occurs when invalid params are submitted - Srv.any_instance.stub(:save).and_return(false) - post :create, :srv => {} - assigns(:srv).should be_a_new(Srv) - end - - it "re-renders the 'new' template" do - # Trigger the behavior that occurs when invalid params are submitted - Srv.any_instance.stub(:save).and_return(false) - post :create, :srv => {} - response.should render_template("new") - end - end - end - - describe "PUT update" do - describe "with valid params" do - it "updates the requested srv" do - srv = Srv.create! valid_attributes - # Assuming there are no other srvs in the database, this - # specifies that the Srv created on the previous line - # receives the :update_attributes message with whatever params are - # submitted in the request. - Srv.any_instance.should_receive(:update_attributes).with({'these' => 'params'}) - put :update, :id => srv.id, :srv => {'these' => 'params'} - end - - it "assigns the requested srv as @srv" do - srv = Srv.create! valid_attributes - put :update, :id => srv.id, :srv => valid_attributes - assigns(:srv).should eq(srv) - end - - it "redirects to the srv" do - srv = Srv.create! valid_attributes - put :update, :id => srv.id, :srv => valid_attributes - response.should redirect_to(srv) - end - end - - describe "with invalid params" do - it "assigns the srv as @srv" do - srv = Srv.create! valid_attributes - # Trigger the behavior that occurs when invalid params are submitted - Srv.any_instance.stub(:save).and_return(false) - put :update, :id => srv.id.to_s, :srv => {} - assigns(:srv).should eq(srv) - end - - it "re-renders the 'edit' template" do - srv = Srv.create! valid_attributes - # Trigger the behavior that occurs when invalid params are submitted - Srv.any_instance.stub(:save).and_return(false) - put :update, :id => srv.id.to_s, :srv => {} - response.should render_template("edit") - end - end - end - - describe "DELETE destroy" do - it "destroys the requested srv" do - srv = Srv.create! valid_attributes - expect { - delete :destroy, :id => srv.id.to_s - }.to change(Srv, :count).by(-1) - end - - it "redirects to the srvs list" do - srv = Srv.create! valid_attributes - delete :destroy, :id => srv.id.to_s - response.should redirect_to(srvs_url) - end - end - -end diff --git a/spec/controllers/txts_controller_spec.rb b/spec/controllers/txts_controller_spec.rb deleted file mode 100644 index ec61e32..0000000 --- a/spec/controllers/txts_controller_spec.rb +++ /dev/null @@ -1,157 +0,0 @@ -require 'spec_helper' - -# This spec was generated by rspec-rails when you ran the scaffold generator. -# It demonstrates how one might use RSpec to specify the controller code that -# was generated by Rails when you ran the scaffold generator. -# -# It assumes that the implementation code is generated by the rails scaffold -# generator. If you are using any extension libraries to generate different -# controller code, this generated spec may or may not pass. -# -# It only uses APIs available in rails and/or rspec-rails. There are a number -# of tools you can use to make these specs even more expressive, but we're -# sticking to rails and rspec-rails APIs to keep things simple and stable. -# -# Compared to earlier versions of this generator, there is very limited use of -# stubs and message expectations in this spec. Stubs are only used when there -# is no simpler way to get a handle on the object needed for the example. -# Message expectations are only used when there is no simpler way to specify -# that an instance is receiving a specific message. - -describe TxtsController do - - # This should return the minimal set of attributes required to create a valid - # Txt. As you add validations to Txt, be sure to - # update the return value of this method accordingly. - def valid_attributes - {} - end - - describe "GET index" do - it "assigns all txts as @txts" do - txt = Txt.create! valid_attributes - get :index - assigns(:txts).should eq([txt]) - end - end - - describe "GET show" do - it "assigns the requested txt as @txt" do - txt = Txt.create! valid_attributes - get :show, :id => txt.id.to_s - assigns(:txt).should eq(txt) - end - end - - describe "GET new" do - it "assigns a new txt as @txt" do - get :new - assigns(:txt).should be_a_new(Txt) - end - end - - describe "GET edit" do - it "assigns the requested txt as @txt" do - txt = Txt.create! valid_attributes - get :edit, :id => txt.id.to_s - assigns(:txt).should eq(txt) - end - end - - describe "POST create" do - describe "with valid params" do - it "creates a new Txt" do - expect { - post :create, :txt => valid_attributes - }.to change(Txt, :count).by(1) - end - - it "assigns a newly created txt as @txt" do - post :create, :txt => valid_attributes - assigns(:txt).should be_a(Txt) - assigns(:txt).should be_persisted - end - - it "redirects to the created txt" do - post :create, :txt => valid_attributes - response.should redirect_to(Txt.last) - end - end - - describe "with invalid params" do - it "assigns a newly created but unsaved txt as @txt" do - # Trigger the behavior that occurs when invalid params are submitted - Txt.any_instance.stub(:save).and_return(false) - post :create, :txt => {} - assigns(:txt).should be_a_new(Txt) - end - - it "re-renders the 'new' template" do - # Trigger the behavior that occurs when invalid params are submitted - Txt.any_instance.stub(:save).and_return(false) - post :create, :txt => {} - response.should render_template("new") - end - end - end - - describe "PUT update" do - describe "with valid params" do - it "updates the requested txt" do - txt = Txt.create! valid_attributes - # Assuming there are no other txts in the database, this - # specifies that the Txt created on the previous line - # receives the :update_attributes message with whatever params are - # submitted in the request. - Txt.any_instance.should_receive(:update_attributes).with({'these' => 'params'}) - put :update, :id => txt.id, :txt => {'these' => 'params'} - end - - it "assigns the requested txt as @txt" do - txt = Txt.create! valid_attributes - put :update, :id => txt.id, :txt => valid_attributes - assigns(:txt).should eq(txt) - end - - it "redirects to the txt" do - txt = Txt.create! valid_attributes - put :update, :id => txt.id, :txt => valid_attributes - response.should redirect_to(txt) - end - end - - describe "with invalid params" do - it "assigns the txt as @txt" do - txt = Txt.create! valid_attributes - # Trigger the behavior that occurs when invalid params are submitted - Txt.any_instance.stub(:save).and_return(false) - put :update, :id => txt.id.to_s, :txt => {} - assigns(:txt).should eq(txt) - end - - it "re-renders the 'edit' template" do - txt = Txt.create! valid_attributes - # Trigger the behavior that occurs when invalid params are submitted - Txt.any_instance.stub(:save).and_return(false) - put :update, :id => txt.id.to_s, :txt => {} - response.should render_template("edit") - end - end - end - - describe "DELETE destroy" do - it "destroys the requested txt" do - txt = Txt.create! valid_attributes - expect { - delete :destroy, :id => txt.id.to_s - }.to change(Txt, :count).by(-1) - end - - it "redirects to the txts list" do - txt = Txt.create! valid_attributes - delete :destroy, :id => txt.id.to_s - response.should redirect_to(txts_url) - end - end - -end diff --git a/spec/helpers/aaaas_helper_spec.rb b/spec/helpers/aaaas_helper_spec.rb deleted file mode 100644 index a3d6c8a..0000000 --- a/spec/helpers/aaaas_helper_spec.rb +++ /dev/null @@ -1,15 +0,0 @@ -require 'spec_helper' - -# Specs in this file have access to a helper object that includes -# the AaaasHelper. For example: -# -# describe AaaasHelper do -# describe "string concat" do -# it "concats two strings with spaces" do -# helper.concat_strings("this","that").should == "this that" -# end -# end -# end -describe AaaasHelper do - pending "add some examples to (or delete) #{__FILE__}" -end diff --git a/spec/helpers/as_helper_spec.rb b/spec/helpers/as_helper_spec.rb deleted file mode 100644 index 7b2c660..0000000 --- a/spec/helpers/as_helper_spec.rb +++ /dev/null @@ -1,15 +0,0 @@ -require 'spec_helper' - -# Specs in this file have access to a helper object that includes -# the AsHelper. For example: -# -# describe AsHelper do -# describe "string concat" do -# it "concats two strings with spaces" do -# helper.concat_strings("this","that").should == "this that" -# end -# end -# end -describe AsHelper do - pending "add some examples to (or delete) #{__FILE__}" -end diff --git a/spec/helpers/cnames_helper_spec.rb b/spec/helpers/cnames_helper_spec.rb deleted file mode 100644 index c2f98d7..0000000 --- a/spec/helpers/cnames_helper_spec.rb +++ /dev/null @@ -1,15 +0,0 @@ -require 'spec_helper' - -# Specs in this file have access to a helper object that includes -# the CnamesHelper. For example: -# -# describe CnamesHelper do -# describe "string concat" do -# it "concats two strings with spaces" do -# helper.concat_strings("this","that").should == "this that" -# end -# end -# end -describe CnamesHelper do - pending "add some examples to (or delete) #{__FILE__}" -end diff --git a/spec/helpers/dashboard_helper_spec.rb b/spec/helpers/dashboard_helper_spec.rb deleted file mode 100644 index fe34307..0000000 --- a/spec/helpers/dashboard_helper_spec.rb +++ /dev/null @@ -1,15 +0,0 @@ -require 'spec_helper' - -# Specs in this file have access to a helper object that includes -# the DashboardHelper. For example: -# -# describe DashboardHelper do -# describe "string concat" do -# it "concats two strings with spaces" do -# helper.concat_strings("this","that").should == "this that" -# end -# end -# end -describe DashboardHelper do - pending "add some examples to (or delete) #{__FILE__}" -end diff --git a/spec/helpers/domains_helper_spec.rb b/spec/helpers/domains_helper_spec.rb deleted file mode 100644 index 59f9c15..0000000 --- a/spec/helpers/domains_helper_spec.rb +++ /dev/null @@ -1,15 +0,0 @@ -require 'spec_helper' - -# Specs in this file have access to a helper object that includes -# the DomainsHelper. For example: -# -# describe DomainsHelper do -# describe "string concat" do -# it "concats two strings with spaces" do -# helper.concat_strings("this","that").should == "this that" -# end -# end -# end -describe DomainsHelper do - pending "add some examples to (or delete) #{__FILE__}" -end diff --git a/spec/helpers/hosts_helper_spec.rb b/spec/helpers/hosts_helper_spec.rb deleted file mode 100644 index 29cad03..0000000 --- a/spec/helpers/hosts_helper_spec.rb +++ /dev/null @@ -1,15 +0,0 @@ -require 'spec_helper' - -# Specs in this file have access to a helper object that includes -# the HostsHelper. For example: -# -# describe HostsHelper do -# describe "string concat" do -# it "concats two strings with spaces" do -# helper.concat_strings("this","that").should == "this that" -# end -# end -# end -describe HostsHelper do - pending "add some examples to (or delete) #{__FILE__}" -end diff --git a/spec/helpers/mxes_helper_spec.rb b/spec/helpers/mxes_helper_spec.rb deleted file mode 100644 index ea45e9b..0000000 --- a/spec/helpers/mxes_helper_spec.rb +++ /dev/null @@ -1,15 +0,0 @@ -require 'spec_helper' - -# Specs in this file have access to a helper object that includes -# the MxesHelper. For example: -# -# describe MxesHelper do -# describe "string concat" do -# it "concats two strings with spaces" do -# helper.concat_strings("this","that").should == "this that" -# end -# end -# end -describe MxesHelper do - pending "add some examples to (or delete) #{__FILE__}" -end diff --git a/spec/helpers/ns_helper_spec.rb b/spec/helpers/ns_helper_spec.rb deleted file mode 100644 index e19790b..0000000 --- a/spec/helpers/ns_helper_spec.rb +++ /dev/null @@ -1,15 +0,0 @@ -require 'spec_helper' - -# Specs in this file have access to a helper object that includes -# the NsHelper. For example: -# -# describe NsHelper do -# describe "string concat" do -# it "concats two strings with spaces" do -# helper.concat_strings("this","that").should == "this that" -# end -# end -# end -describe NsHelper do - pending "add some examples to (or delete) #{__FILE__}" -end diff --git a/spec/helpers/pages_helper_spec.rb b/spec/helpers/pages_helper_spec.rb deleted file mode 100644 index 4f75448..0000000 --- a/spec/helpers/pages_helper_spec.rb +++ /dev/null @@ -1,15 +0,0 @@ -require 'spec_helper' - -# Specs in this file have access to a helper object that includes -# the PagesHelper. For example: -# -# describe PagesHelper do -# describe "string concat" do -# it "concats two strings with spaces" do -# helper.concat_strings("this","that").should == "this that" -# end -# end -# end -describe PagesHelper do - pending "add some examples to (or delete) #{__FILE__}" -end diff --git a/spec/helpers/permissions_helper_spec.rb b/spec/helpers/permissions_helper_spec.rb deleted file mode 100644 index 29d9dbc..0000000 --- a/spec/helpers/permissions_helper_spec.rb +++ /dev/null @@ -1,15 +0,0 @@ -require 'spec_helper' - -# Specs in this file have access to a helper object that includes -# the PermissionsHelper. For example: -# -# describe PermissionsHelper do -# describe "string concat" do -# it "concats two strings with spaces" do -# helper.concat_strings("this","that").should == "this that" -# end -# end -# end -describe PermissionsHelper do - pending "add some examples to (or delete) #{__FILE__}" -end diff --git a/spec/helpers/records_helper_spec.rb b/spec/helpers/records_helper_spec.rb deleted file mode 100644 index 24f9b84..0000000 --- a/spec/helpers/records_helper_spec.rb +++ /dev/null @@ -1,15 +0,0 @@ -require 'spec_helper' - -# Specs in this file have access to a helper object that includes -# the RecordsHelper. For example: -# -# describe RecordsHelper do -# describe "string concat" do -# it "concats two strings with spaces" do -# helper.concat_strings("this","that").should == "this that" -# end -# end -# end -describe RecordsHelper do - pending "add some examples to (or delete) #{__FILE__}" -end diff --git a/spec/helpers/soas_helper_spec.rb b/spec/helpers/soas_helper_spec.rb deleted file mode 100644 index 26c9fa6..0000000 --- a/spec/helpers/soas_helper_spec.rb +++ /dev/null @@ -1,15 +0,0 @@ -require 'spec_helper' - -# Specs in this file have access to a helper object that includes -# the SoAsHelper. For example: -# -# describe SoAsHelper do -# describe "string concat" do -# it "concats two strings with spaces" do -# helper.concat_strings("this","that").should == "this that" -# end -# end -# end -describe SoasHelper do - pending "add some examples to (or delete) #{__FILE__}" -end diff --git a/spec/helpers/srvs_helper_spec.rb b/spec/helpers/srvs_helper_spec.rb deleted file mode 100644 index 1d83d47..0000000 --- a/spec/helpers/srvs_helper_spec.rb +++ /dev/null @@ -1,15 +0,0 @@ -require 'spec_helper' - -# Specs in this file have access to a helper object that includes -# the SrvsHelper. For example: -# -# describe SrvsHelper do -# describe "string concat" do -# it "concats two strings with spaces" do -# helper.concat_strings("this","that").should == "this that" -# end -# end -# end -describe SrvsHelper do - pending "add some examples to (or delete) #{__FILE__}" -end diff --git a/spec/helpers/txts_helper_spec.rb b/spec/helpers/txts_helper_spec.rb deleted file mode 100644 index 409a0f4..0000000 --- a/spec/helpers/txts_helper_spec.rb +++ /dev/null @@ -1,15 +0,0 @@ -require 'spec_helper' - -# Specs in this file have access to a helper object that includes -# the TxtsHelper. For example: -# -# describe TxtsHelper do -# describe "string concat" do -# it "concats two strings with spaces" do -# helper.concat_strings("this","that").should == "this that" -# end -# end -# end -describe TxtsHelper do - pending "add some examples to (or delete) #{__FILE__}" -end diff --git a/spec/requests/aaaas_spec.rb b/spec/requests/aaaas_spec.rb deleted file mode 100644 index 49f512c..0000000 --- a/spec/requests/aaaas_spec.rb +++ /dev/null @@ -1,11 +0,0 @@ -require 'spec_helper' - -describe "Aaaas" do - describe "GET /aaaas" do - it "works! (now write some real specs)" do - # Run the generator again with the --webrat flag if you want to use webrat methods/matchers - get aaaas_path - response.status.should be(200) - end - end -end diff --git a/spec/requests/as_spec.rb b/spec/requests/as_spec.rb deleted file mode 100644 index 467e397..0000000 --- a/spec/requests/as_spec.rb +++ /dev/null @@ -1,11 +0,0 @@ -require 'spec_helper' - -describe "As" do - describe "GET /as" do - it "works! (now write some real specs)" do - # Run the generator again with the --webrat flag if you want to use webrat methods/matchers - get as_path - response.status.should be(200) - end - end -end diff --git a/spec/requests/cnames_spec.rb b/spec/requests/cnames_spec.rb deleted file mode 100644 index a13db0e..0000000 --- a/spec/requests/cnames_spec.rb +++ /dev/null @@ -1,11 +0,0 @@ -require 'spec_helper' - -describe "Cnames" do - describe "GET /cnames" do - it "works! (now write some real specs)" do - # Run the generator again with the --webrat flag if you want to use webrat methods/matchers - get cnames_path - response.status.should be(200) - end - end -end diff --git a/spec/requests/domains_spec.rb b/spec/requests/domains_spec.rb deleted file mode 100644 index 3e2c9d4..0000000 --- a/spec/requests/domains_spec.rb +++ /dev/null @@ -1,11 +0,0 @@ -require 'spec_helper' - -describe "Domains" do - describe "GET /domains" do - it "works! (now write some real specs)" do - # Run the generator again with the --webrat flag if you want to use webrat methods/matchers - get domains_path - response.status.should be(200) - end - end -end diff --git a/spec/requests/hosts_spec.rb b/spec/requests/hosts_spec.rb deleted file mode 100644 index 3bd06ee..0000000 --- a/spec/requests/hosts_spec.rb +++ /dev/null @@ -1,11 +0,0 @@ -require 'spec_helper' - -describe "Hosts" do - describe "GET /hosts" do - it "works! (now write some real specs)" do - # Run the generator again with the --webrat flag if you want to use webrat methods/matchers - get hosts_path - response.status.should be(200) - end - end -end diff --git a/spec/requests/mxes_spec.rb b/spec/requests/mxes_spec.rb deleted file mode 100644 index f568aba..0000000 --- a/spec/requests/mxes_spec.rb +++ /dev/null @@ -1,11 +0,0 @@ -require 'spec_helper' - -describe "Mxes" do - describe "GET /mxes" do - it "works! (now write some real specs)" do - # Run the generator again with the --webrat flag if you want to use webrat methods/matchers - get mxes_path - response.status.should be(200) - end - end -end diff --git a/spec/requests/ns_spec.rb b/spec/requests/ns_spec.rb deleted file mode 100644 index 971ca2a..0000000 --- a/spec/requests/ns_spec.rb +++ /dev/null @@ -1,11 +0,0 @@ -require 'spec_helper' - -describe "Ns" do - describe "GET /ns" do - it "works! (now write some real specs)" do - # Run the generator again with the --webrat flag if you want to use webrat methods/matchers - get ns_index_path - response.status.should be(200) - end - end -end diff --git a/spec/requests/permissions_spec.rb b/spec/requests/permissions_spec.rb deleted file mode 100644 index bea18a2..0000000 --- a/spec/requests/permissions_spec.rb +++ /dev/null @@ -1,11 +0,0 @@ -require 'spec_helper' - -describe "Permissions" do - describe "GET /permissions" do - it "works! (now write some real specs)" do - # Run the generator again with the --webrat flag if you want to use webrat methods/matchers - get permissions_path - response.status.should be(200) - end - end -end diff --git a/spec/requests/records_spec.rb b/spec/requests/records_spec.rb deleted file mode 100644 index 41bde8e..0000000 --- a/spec/requests/records_spec.rb +++ /dev/null @@ -1,11 +0,0 @@ -require 'spec_helper' - -describe "Records" do - describe "GET /records" do - it "works! (now write some real specs)" do - # Run the generator again with the --webrat flag if you want to use webrat methods/matchers - get records_path - response.status.should be(200) - end - end -end diff --git a/spec/requests/soas_spec.rb b/spec/requests/soas_spec.rb deleted file mode 100644 index 370130c..0000000 --- a/spec/requests/soas_spec.rb +++ /dev/null @@ -1,11 +0,0 @@ -require 'spec_helper' - -describe "Soas" do - describe "GET /soas" do - it "works! (now write some real specs)" do - # Run the generator again with the --webrat flag if you want to use webrat methods/matchers - get soas_path - response.status.should be(200) - end - end -end diff --git a/spec/requests/srvs_spec.rb b/spec/requests/srvs_spec.rb deleted file mode 100644 index 04f08c5..0000000 --- a/spec/requests/srvs_spec.rb +++ /dev/null @@ -1,11 +0,0 @@ -require 'spec_helper' - -describe "Srvs" do - describe "GET /srvs" do - it "works! (now write some real specs)" do - # Run the generator again with the --webrat flag if you want to use webrat methods/matchers - get srvs_path - response.status.should be(200) - end - end -end diff --git a/spec/requests/txts_spec.rb b/spec/requests/txts_spec.rb deleted file mode 100644 index 992f5a8..0000000 --- a/spec/requests/txts_spec.rb +++ /dev/null @@ -1,11 +0,0 @@ -require 'spec_helper' - -describe "Txts" do - describe "GET /txts" do - it "works! (now write some real specs)" do - # Run the generator again with the --webrat flag if you want to use webrat methods/matchers - get txts_path - response.status.should be(200) - end - end -end diff --git a/spec/views/aaaas/edit.html.erb_spec.rb b/spec/views/aaaas/edit.html.erb_spec.rb deleted file mode 100644 index df5e5a3..0000000 --- a/spec/views/aaaas/edit.html.erb_spec.rb +++ /dev/null @@ -1,15 +0,0 @@ -require 'spec_helper' - -describe "aaaas/edit.html.erb" do - before(:each) do - @aaaa = assign(:aaaa, stub_model(Aaaa)) - end - - it "renders the edit aaaa form" do - render - - # Run the generator again with the --webrat flag if you want to use webrat matchers - assert_select "form", :action => aaaas_path(@aaaa), :method => "post" do - end - end -end diff --git a/spec/views/aaaas/index.html.erb_spec.rb b/spec/views/aaaas/index.html.erb_spec.rb deleted file mode 100644 index ca1c8ad..0000000 --- a/spec/views/aaaas/index.html.erb_spec.rb +++ /dev/null @@ -1,14 +0,0 @@ -require 'spec_helper' - -describe "aaaas/index.html.erb" do - before(:each) do - assign(:aaaas, [ - stub_model(Aaaa), - stub_model(Aaaa) - ]) - end - - it "renders a list of aaaas" do - render - end -end diff --git a/spec/views/aaaas/new.html.erb_spec.rb b/spec/views/aaaas/new.html.erb_spec.rb deleted file mode 100644 index 23d974a..0000000 --- a/spec/views/aaaas/new.html.erb_spec.rb +++ /dev/null @@ -1,15 +0,0 @@ -require 'spec_helper' - -describe "aaaas/new.html.erb" do - before(:each) do - assign(:aaaa, stub_model(Aaaa).as_new_record) - end - - it "renders new aaaa form" do - render - - # Run the generator again with the --webrat flag if you want to use webrat matchers - assert_select "form", :action => aaaas_path, :method => "post" do - end - end -end diff --git a/spec/views/aaaas/show.html.erb_spec.rb b/spec/views/aaaas/show.html.erb_spec.rb deleted file mode 100644 index fe992fb..0000000 --- a/spec/views/aaaas/show.html.erb_spec.rb +++ /dev/null @@ -1,11 +0,0 @@ -require 'spec_helper' - -describe "aaaas/show.html.erb" do - before(:each) do - @aaaa = assign(:aaaa, stub_model(Aaaa)) - end - - it "renders attributes in

" do - render - end -end diff --git a/spec/views/as/edit.html.erb_spec.rb b/spec/views/as/edit.html.erb_spec.rb deleted file mode 100644 index 0beee6c..0000000 --- a/spec/views/as/edit.html.erb_spec.rb +++ /dev/null @@ -1,15 +0,0 @@ -require 'spec_helper' - -describe "as/edit.html.erb" do - before(:each) do - @a = assign(:a, stub_model(A)) - end - - it "renders the edit a form" do - render - - # Run the generator again with the --webrat flag if you want to use webrat matchers - assert_select "form", :action => as_path(@a), :method => "post" do - end - end -end diff --git a/spec/views/as/index.html.erb_spec.rb b/spec/views/as/index.html.erb_spec.rb deleted file mode 100644 index a949138..0000000 --- a/spec/views/as/index.html.erb_spec.rb +++ /dev/null @@ -1,14 +0,0 @@ -require 'spec_helper' - -describe "as/index.html.erb" do - before(:each) do - assign(:as, [ - stub_model(A), - stub_model(A) - ]) - end - - it "renders a list of as" do - render - end -end diff --git a/spec/views/as/new.html.erb_spec.rb b/spec/views/as/new.html.erb_spec.rb deleted file mode 100644 index 0f8e1ce..0000000 --- a/spec/views/as/new.html.erb_spec.rb +++ /dev/null @@ -1,15 +0,0 @@ -require 'spec_helper' - -describe "as/new.html.erb" do - before(:each) do - assign(:a, stub_model(A).as_new_record) - end - - it "renders new a form" do - render - - # Run the generator again with the --webrat flag if you want to use webrat matchers - assert_select "form", :action => as_path, :method => "post" do - end - end -end diff --git a/spec/views/as/show.html.erb_spec.rb b/spec/views/as/show.html.erb_spec.rb deleted file mode 100644 index fbaebfa..0000000 --- a/spec/views/as/show.html.erb_spec.rb +++ /dev/null @@ -1,11 +0,0 @@ -require 'spec_helper' - -describe "as/show.html.erb" do - before(:each) do - @a = assign(:a, stub_model(A)) - end - - it "renders attributes in

" do - render - end -end diff --git a/spec/views/cnames/edit.html.erb_spec.rb b/spec/views/cnames/edit.html.erb_spec.rb deleted file mode 100644 index 65d8227..0000000 --- a/spec/views/cnames/edit.html.erb_spec.rb +++ /dev/null @@ -1,15 +0,0 @@ -require 'spec_helper' - -describe "cnames/edit.html.erb" do - before(:each) do - @cname = assign(:cname, stub_model(Cname)) - end - - it "renders the edit cname form" do - render - - # Run the generator again with the --webrat flag if you want to use webrat matchers - assert_select "form", :action => cnames_path(@cname), :method => "post" do - end - end -end diff --git a/spec/views/cnames/index.html.erb_spec.rb b/spec/views/cnames/index.html.erb_spec.rb deleted file mode 100644 index 9b56792..0000000 --- a/spec/views/cnames/index.html.erb_spec.rb +++ /dev/null @@ -1,14 +0,0 @@ -require 'spec_helper' - -describe "cnames/index.html.erb" do - before(:each) do - assign(:cnames, [ - stub_model(Cname), - stub_model(Cname) - ]) - end - - it "renders a list of cnames" do - render - end -end diff --git a/spec/views/cnames/new.html.erb_spec.rb b/spec/views/cnames/new.html.erb_spec.rb deleted file mode 100644 index 042cf13..0000000 --- a/spec/views/cnames/new.html.erb_spec.rb +++ /dev/null @@ -1,15 +0,0 @@ -require 'spec_helper' - -describe "cnames/new.html.erb" do - before(:each) do - assign(:cname, stub_model(Cname).as_new_record) - end - - it "renders new cname form" do - render - - # Run the generator again with the --webrat flag if you want to use webrat matchers - assert_select "form", :action => cnames_path, :method => "post" do - end - end -end diff --git a/spec/views/cnames/show.html.erb_spec.rb b/spec/views/cnames/show.html.erb_spec.rb deleted file mode 100644 index be71a35..0000000 --- a/spec/views/cnames/show.html.erb_spec.rb +++ /dev/null @@ -1,11 +0,0 @@ -require 'spec_helper' - -describe "cnames/show.html.erb" do - before(:each) do - @cname = assign(:cname, stub_model(Cname)) - end - - it "renders attributes in

" do - render - end -end diff --git a/spec/views/domains/edit.html.erb_spec.rb b/spec/views/domains/edit.html.erb_spec.rb deleted file mode 100644 index cd1a9e8..0000000 --- a/spec/views/domains/edit.html.erb_spec.rb +++ /dev/null @@ -1,15 +0,0 @@ -require 'spec_helper' - -describe "domains/edit.html.erb" do - before(:each) do - @domain = assign(:domain, stub_model(Domain)) - end - - it "renders the edit domain form" do - render - - # Run the generator again with the --webrat flag if you want to use webrat matchers - assert_select "form", :action => domains_path(@domain), :method => "post" do - end - end -end diff --git a/spec/views/domains/index.html.erb_spec.rb b/spec/views/domains/index.html.erb_spec.rb deleted file mode 100644 index 9b85910..0000000 --- a/spec/views/domains/index.html.erb_spec.rb +++ /dev/null @@ -1,14 +0,0 @@ -require 'spec_helper' - -describe "domains/index.html.erb" do - before(:each) do - assign(:domains, [ - stub_model(Domain), - stub_model(Domain) - ]) - end - - it "renders a list of domains" do - render - end -end diff --git a/spec/views/domains/new.html.erb_spec.rb b/spec/views/domains/new.html.erb_spec.rb deleted file mode 100644 index b541e17..0000000 --- a/spec/views/domains/new.html.erb_spec.rb +++ /dev/null @@ -1,15 +0,0 @@ -require 'spec_helper' - -describe "domains/new.html.erb" do - before(:each) do - assign(:domain, stub_model(Domain).as_new_record) - end - - it "renders new domain form" do - render - - # Run the generator again with the --webrat flag if you want to use webrat matchers - assert_select "form", :action => domains_path, :method => "post" do - end - end -end diff --git a/spec/views/domains/show.html.erb_spec.rb b/spec/views/domains/show.html.erb_spec.rb deleted file mode 100644 index 8fea694..0000000 --- a/spec/views/domains/show.html.erb_spec.rb +++ /dev/null @@ -1,11 +0,0 @@ -require 'spec_helper' - -describe "domains/show.html.erb" do - before(:each) do - @domain = assign(:domain, stub_model(Domain)) - end - - it "renders attributes in

" do - render - end -end diff --git a/spec/views/hosts/edit.html.erb_spec.rb b/spec/views/hosts/edit.html.erb_spec.rb deleted file mode 100644 index 756d3c3..0000000 --- a/spec/views/hosts/edit.html.erb_spec.rb +++ /dev/null @@ -1,15 +0,0 @@ -require 'spec_helper' - -describe "hosts/edit.html.erb" do - before(:each) do - @host = assign(:host, stub_model(Host)) - end - - it "renders the edit host form" do - render - - # Run the generator again with the --webrat flag if you want to use webrat matchers - assert_select "form", :action => hosts_path(@host), :method => "post" do - end - end -end diff --git a/spec/views/hosts/index.html.erb_spec.rb b/spec/views/hosts/index.html.erb_spec.rb deleted file mode 100644 index bbc0fb6..0000000 --- a/spec/views/hosts/index.html.erb_spec.rb +++ /dev/null @@ -1,14 +0,0 @@ -require 'spec_helper' - -describe "hosts/index.html.erb" do - before(:each) do - assign(:hosts, [ - stub_model(Host), - stub_model(Host) - ]) - end - - it "renders a list of hosts" do - render - end -end diff --git a/spec/views/hosts/new.html.erb_spec.rb b/spec/views/hosts/new.html.erb_spec.rb deleted file mode 100644 index 5ed15ef..0000000 --- a/spec/views/hosts/new.html.erb_spec.rb +++ /dev/null @@ -1,15 +0,0 @@ -require 'spec_helper' - -describe "hosts/new.html.erb" do - before(:each) do - assign(:host, stub_model(Host).as_new_record) - end - - it "renders new host form" do - render - - # Run the generator again with the --webrat flag if you want to use webrat matchers - assert_select "form", :action => hosts_path, :method => "post" do - end - end -end diff --git a/spec/views/hosts/show.html.erb_spec.rb b/spec/views/hosts/show.html.erb_spec.rb deleted file mode 100644 index b6c499c..0000000 --- a/spec/views/hosts/show.html.erb_spec.rb +++ /dev/null @@ -1,11 +0,0 @@ -require 'spec_helper' - -describe "hosts/show.html.erb" do - before(:each) do - @host = assign(:host, stub_model(Host)) - end - - it "renders attributes in

" do - render - end -end diff --git a/spec/views/mxes/edit.html.erb_spec.rb b/spec/views/mxes/edit.html.erb_spec.rb deleted file mode 100644 index fa55936..0000000 --- a/spec/views/mxes/edit.html.erb_spec.rb +++ /dev/null @@ -1,15 +0,0 @@ -require 'spec_helper' - -describe "mxes/edit.html.erb" do - before(:each) do - @mx = assign(:mx, stub_model(Mx)) - end - - it "renders the edit mx form" do - render - - # Run the generator again with the --webrat flag if you want to use webrat matchers - assert_select "form", :action => mxes_path(@mx), :method => "post" do - end - end -end diff --git a/spec/views/mxes/index.html.erb_spec.rb b/spec/views/mxes/index.html.erb_spec.rb deleted file mode 100644 index 2810a4a..0000000 --- a/spec/views/mxes/index.html.erb_spec.rb +++ /dev/null @@ -1,14 +0,0 @@ -require 'spec_helper' - -describe "mxes/index.html.erb" do - before(:each) do - assign(:mxes, [ - stub_model(Mx), - stub_model(Mx) - ]) - end - - it "renders a list of mxes" do - render - end -end diff --git a/spec/views/mxes/new.html.erb_spec.rb b/spec/views/mxes/new.html.erb_spec.rb deleted file mode 100644 index 1ea6644..0000000 --- a/spec/views/mxes/new.html.erb_spec.rb +++ /dev/null @@ -1,15 +0,0 @@ -require 'spec_helper' - -describe "mxes/new.html.erb" do - before(:each) do - assign(:mx, stub_model(Mx).as_new_record) - end - - it "renders new mx form" do - render - - # Run the generator again with the --webrat flag if you want to use webrat matchers - assert_select "form", :action => mxes_path, :method => "post" do - end - end -end diff --git a/spec/views/mxes/show.html.erb_spec.rb b/spec/views/mxes/show.html.erb_spec.rb deleted file mode 100644 index 820c13b..0000000 --- a/spec/views/mxes/show.html.erb_spec.rb +++ /dev/null @@ -1,11 +0,0 @@ -require 'spec_helper' - -describe "mxes/show.html.erb" do - before(:each) do - @mx = assign(:mx, stub_model(Mx)) - end - - it "renders attributes in

" do - render - end -end diff --git a/spec/views/ns/edit.html.erb_spec.rb b/spec/views/ns/edit.html.erb_spec.rb deleted file mode 100644 index 6c25153..0000000 --- a/spec/views/ns/edit.html.erb_spec.rb +++ /dev/null @@ -1,15 +0,0 @@ -require 'spec_helper' - -describe "ns/edit.html.erb" do - before(:each) do - @ns = assign(:ns, stub_model(Ns)) - end - - it "renders the edit ns form" do - render - - # Run the generator again with the --webrat flag if you want to use webrat matchers - assert_select "form", :action => ns_index_path(@ns), :method => "post" do - end - end -end diff --git a/spec/views/ns/index.html.erb_spec.rb b/spec/views/ns/index.html.erb_spec.rb deleted file mode 100644 index 7b360b8..0000000 --- a/spec/views/ns/index.html.erb_spec.rb +++ /dev/null @@ -1,14 +0,0 @@ -require 'spec_helper' - -describe "ns/index.html.erb" do - before(:each) do - assign(:ns, [ - stub_model(Ns), - stub_model(Ns) - ]) - end - - it "renders a list of ns" do - render - end -end diff --git a/spec/views/ns/new.html.erb_spec.rb b/spec/views/ns/new.html.erb_spec.rb deleted file mode 100644 index c882fae..0000000 --- a/spec/views/ns/new.html.erb_spec.rb +++ /dev/null @@ -1,15 +0,0 @@ -require 'spec_helper' - -describe "ns/new.html.erb" do - before(:each) do - assign(:ns, stub_model(Ns).as_new_record) - end - - it "renders new ns form" do - render - - # Run the generator again with the --webrat flag if you want to use webrat matchers - assert_select "form", :action => ns_index_path, :method => "post" do - end - end -end diff --git a/spec/views/ns/show.html.erb_spec.rb b/spec/views/ns/show.html.erb_spec.rb deleted file mode 100644 index 88e833c..0000000 --- a/spec/views/ns/show.html.erb_spec.rb +++ /dev/null @@ -1,11 +0,0 @@ -require 'spec_helper' - -describe "ns/show.html.erb" do - before(:each) do - @ns = assign(:ns, stub_model(Ns)) - end - - it "renders attributes in

" do - render - end -end diff --git a/spec/views/permissions/edit.html.erb_spec.rb b/spec/views/permissions/edit.html.erb_spec.rb deleted file mode 100644 index 885f4fb..0000000 --- a/spec/views/permissions/edit.html.erb_spec.rb +++ /dev/null @@ -1,15 +0,0 @@ -require 'spec_helper' - -describe "permissions/edit.html.erb" do - before(:each) do - @permission = assign(:permission, stub_model(Permission)) - end - - it "renders the edit permission form" do - render - - # Run the generator again with the --webrat flag if you want to use webrat matchers - assert_select "form", :action => permissions_path(@permission), :method => "post" do - end - end -end diff --git a/spec/views/permissions/index.html.erb_spec.rb b/spec/views/permissions/index.html.erb_spec.rb deleted file mode 100644 index 69d8b18..0000000 --- a/spec/views/permissions/index.html.erb_spec.rb +++ /dev/null @@ -1,14 +0,0 @@ -require 'spec_helper' - -describe "permissions/index.html.erb" do - before(:each) do - assign(:permissions, [ - stub_model(Permission), - stub_model(Permission) - ]) - end - - it "renders a list of permissions" do - render - end -end diff --git a/spec/views/permissions/new.html.erb_spec.rb b/spec/views/permissions/new.html.erb_spec.rb deleted file mode 100644 index 6681f59..0000000 --- a/spec/views/permissions/new.html.erb_spec.rb +++ /dev/null @@ -1,15 +0,0 @@ -require 'spec_helper' - -describe "permissions/new.html.erb" do - before(:each) do - assign(:permission, stub_model(Permission).as_new_record) - end - - it "renders new permission form" do - render - - # Run the generator again with the --webrat flag if you want to use webrat matchers - assert_select "form", :action => permissions_path, :method => "post" do - end - end -end diff --git a/spec/views/permissions/show.html.erb_spec.rb b/spec/views/permissions/show.html.erb_spec.rb deleted file mode 100644 index e976633..0000000 --- a/spec/views/permissions/show.html.erb_spec.rb +++ /dev/null @@ -1,11 +0,0 @@ -require 'spec_helper' - -describe "permissions/show.html.erb" do - before(:each) do - @permission = assign(:permission, stub_model(Permission)) - end - - it "renders attributes in

" do - render - end -end diff --git a/spec/views/records/edit.html.erb_spec.rb b/spec/views/records/edit.html.erb_spec.rb deleted file mode 100644 index cf34535..0000000 --- a/spec/views/records/edit.html.erb_spec.rb +++ /dev/null @@ -1,15 +0,0 @@ -require 'spec_helper' - -describe "records/edit.html.erb" do - before(:each) do - @record = assign(:record, stub_model(Record)) - end - - it "renders the edit record form" do - render - - # Run the generator again with the --webrat flag if you want to use webrat matchers - assert_select "form", :action => records_path(@record), :method => "post" do - end - end -end diff --git a/spec/views/records/index.html.erb_spec.rb b/spec/views/records/index.html.erb_spec.rb deleted file mode 100644 index dd498f2..0000000 --- a/spec/views/records/index.html.erb_spec.rb +++ /dev/null @@ -1,14 +0,0 @@ -require 'spec_helper' - -describe "records/index.html.erb" do - before(:each) do - assign(:records, [ - stub_model(Record), - stub_model(Record) - ]) - end - - it "renders a list of records" do - render - end -end diff --git a/spec/views/records/new.html.erb_spec.rb b/spec/views/records/new.html.erb_spec.rb deleted file mode 100644 index e307e1e..0000000 --- a/spec/views/records/new.html.erb_spec.rb +++ /dev/null @@ -1,15 +0,0 @@ -require 'spec_helper' - -describe "records/new.html.erb" do - before(:each) do - assign(:record, stub_model(Record).as_new_record) - end - - it "renders new record form" do - render - - # Run the generator again with the --webrat flag if you want to use webrat matchers - assert_select "form", :action => records_path, :method => "post" do - end - end -end diff --git a/spec/views/records/show.html.erb_spec.rb b/spec/views/records/show.html.erb_spec.rb deleted file mode 100644 index 136bf64..0000000 --- a/spec/views/records/show.html.erb_spec.rb +++ /dev/null @@ -1,11 +0,0 @@ -require 'spec_helper' - -describe "records/show.html.erb" do - before(:each) do - @record = assign(:record, stub_model(Record)) - end - - it "renders attributes in

" do - render - end -end diff --git a/spec/views/soas/edit.html.erb_spec.rb b/spec/views/soas/edit.html.erb_spec.rb deleted file mode 100644 index 1b7ea43..0000000 --- a/spec/views/soas/edit.html.erb_spec.rb +++ /dev/null @@ -1,15 +0,0 @@ -require 'spec_helper' - -describe "soas/edit.html.erb" do - before(:each) do - @soa = assign(:soa, stub_model(Soa)) - end - - it "renders the edit soa form" do - render - - # Run the generator again with the --webrat flag if you want to use webrat matchers - assert_select "form", :action => soas_path(@soa), :method => "post" do - end - end -end diff --git a/spec/views/soas/index.html.erb_spec.rb b/spec/views/soas/index.html.erb_spec.rb deleted file mode 100644 index 7e094dc..0000000 --- a/spec/views/soas/index.html.erb_spec.rb +++ /dev/null @@ -1,14 +0,0 @@ -require 'spec_helper' - -describe "soas/index.html.erb" do - before(:each) do - assign(:soas, [ - stub_model(Soa), - stub_model(Soa) - ]) - end - - it "renders a list of soas" do - render - end -end diff --git a/spec/views/soas/new.html.erb_spec.rb b/spec/views/soas/new.html.erb_spec.rb deleted file mode 100644 index 853f6e5..0000000 --- a/spec/views/soas/new.html.erb_spec.rb +++ /dev/null @@ -1,15 +0,0 @@ -require 'spec_helper' - -describe "soas/new.html.erb" do - before(:each) do - assign(:soa, stub_model(Soa).as_new_record) - end - - it "renders new soa form" do - render - - # Run the generator again with the --webrat flag if you want to use webrat matchers - assert_select "form", :action => soas_path, :method => "post" do - end - end -end diff --git a/spec/views/soas/show.html.erb_spec.rb b/spec/views/soas/show.html.erb_spec.rb deleted file mode 100644 index e76faf3..0000000 --- a/spec/views/soas/show.html.erb_spec.rb +++ /dev/null @@ -1,11 +0,0 @@ -require 'spec_helper' - -describe "soas/show.html.erb" do - before(:each) do - @soa = assign(:soa, stub_model(Soa)) - end - - it "renders attributes in

" do - render - end -end diff --git a/spec/views/srvs/edit.html.erb_spec.rb b/spec/views/srvs/edit.html.erb_spec.rb deleted file mode 100644 index f1d4e3f..0000000 --- a/spec/views/srvs/edit.html.erb_spec.rb +++ /dev/null @@ -1,15 +0,0 @@ -require 'spec_helper' - -describe "srvs/edit.html.erb" do - before(:each) do - @srv = assign(:srv, stub_model(Srv)) - end - - it "renders the edit srv form" do - render - - # Run the generator again with the --webrat flag if you want to use webrat matchers - assert_select "form", :action => srvs_path(@srv), :method => "post" do - end - end -end diff --git a/spec/views/srvs/index.html.erb_spec.rb b/spec/views/srvs/index.html.erb_spec.rb deleted file mode 100644 index 68ccddf..0000000 --- a/spec/views/srvs/index.html.erb_spec.rb +++ /dev/null @@ -1,14 +0,0 @@ -require 'spec_helper' - -describe "srvs/index.html.erb" do - before(:each) do - assign(:srvs, [ - stub_model(Srv), - stub_model(Srv) - ]) - end - - it "renders a list of srvs" do - render - end -end diff --git a/spec/views/srvs/new.html.erb_spec.rb b/spec/views/srvs/new.html.erb_spec.rb deleted file mode 100644 index 7cd61bc..0000000 --- a/spec/views/srvs/new.html.erb_spec.rb +++ /dev/null @@ -1,15 +0,0 @@ -require 'spec_helper' - -describe "srvs/new.html.erb" do - before(:each) do - assign(:srv, stub_model(Srv).as_new_record) - end - - it "renders new srv form" do - render - - # Run the generator again with the --webrat flag if you want to use webrat matchers - assert_select "form", :action => srvs_path, :method => "post" do - end - end -end diff --git a/spec/views/srvs/show.html.erb_spec.rb b/spec/views/srvs/show.html.erb_spec.rb deleted file mode 100644 index ed03d06..0000000 --- a/spec/views/srvs/show.html.erb_spec.rb +++ /dev/null @@ -1,11 +0,0 @@ -require 'spec_helper' - -describe "srvs/show.html.erb" do - before(:each) do - @srv = assign(:srv, stub_model(Srv)) - end - - it "renders attributes in

" do - render - end -end diff --git a/spec/views/txts/edit.html.erb_spec.rb b/spec/views/txts/edit.html.erb_spec.rb deleted file mode 100644 index cd82cc3..0000000 --- a/spec/views/txts/edit.html.erb_spec.rb +++ /dev/null @@ -1,15 +0,0 @@ -require 'spec_helper' - -describe "txts/edit.html.erb" do - before(:each) do - @txt = assign(:txt, stub_model(Txt)) - end - - it "renders the edit txt form" do - render - - # Run the generator again with the --webrat flag if you want to use webrat matchers - assert_select "form", :action => txts_path(@txt), :method => "post" do - end - end -end diff --git a/spec/views/txts/index.html.erb_spec.rb b/spec/views/txts/index.html.erb_spec.rb deleted file mode 100644 index 14daaf8..0000000 --- a/spec/views/txts/index.html.erb_spec.rb +++ /dev/null @@ -1,14 +0,0 @@ -require 'spec_helper' - -describe "txts/index.html.erb" do - before(:each) do - assign(:txts, [ - stub_model(Txt), - stub_model(Txt) - ]) - end - - it "renders a list of txts" do - render - end -end diff --git a/spec/views/txts/new.html.erb_spec.rb b/spec/views/txts/new.html.erb_spec.rb deleted file mode 100644 index ca881bc..0000000 --- a/spec/views/txts/new.html.erb_spec.rb +++ /dev/null @@ -1,15 +0,0 @@ -require 'spec_helper' - -describe "txts/new.html.erb" do - before(:each) do - assign(:txt, stub_model(Txt).as_new_record) - end - - it "renders new txt form" do - render - - # Run the generator again with the --webrat flag if you want to use webrat matchers - assert_select "form", :action => txts_path, :method => "post" do - end - end -end diff --git a/spec/views/txts/show.html.erb_spec.rb b/spec/views/txts/show.html.erb_spec.rb deleted file mode 100644 index d03b339..0000000 --- a/spec/views/txts/show.html.erb_spec.rb +++ /dev/null @@ -1,11 +0,0 @@ -require 'spec_helper' - -describe "txts/show.html.erb" do - before(:each) do - @txt = assign(:txt, stub_model(Txt)) - end - - it "renders attributes in

" do - render - end -end