Nicolae Claudius
13 years ago
87 changed files with 0 additions and 2739 deletions
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -1,5 +0,0 @@ |
|||||||
require 'spec_helper' |
|
||||||
|
|
||||||
describe DashboardController do |
|
||||||
|
|
||||||
end |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -1,5 +0,0 @@ |
|||||||
require 'spec_helper' |
|
||||||
|
|
||||||
describe PagesController do |
|
||||||
|
|
||||||
end |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 <p>" do |
|
||||||
render |
|
||||||
end |
|
||||||
end |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 <p>" do |
|
||||||
render |
|
||||||
end |
|
||||||
end |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 <p>" do |
|
||||||
render |
|
||||||
end |
|
||||||
end |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 <p>" do |
|
||||||
render |
|
||||||
end |
|
||||||
end |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 <p>" do |
|
||||||
render |
|
||||||
end |
|
||||||
end |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 <p>" do |
|
||||||
render |
|
||||||
end |
|
||||||
end |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 <p>" do |
|
||||||
render |
|
||||||
end |
|
||||||
end |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 <p>" do |
|
||||||
render |
|
||||||
end |
|
||||||
end |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 <p>" do |
|
||||||
render |
|
||||||
end |
|
||||||
end |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 <p>" do |
|
||||||
render |
|
||||||
end |
|
||||||
end |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
@ -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 <p>" do |
|
||||||
render |
|
||||||
end |
|
||||||
end |
|
@ -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 |
|
@ -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 |
|
@ -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 |
|
Loading…
Reference in new issue