broken pipe quest
This commit is contained in:
@@ -28,11 +28,6 @@ describe Suppliers::SectionsController, type: :controller do
|
||||
get :index
|
||||
expect{ render_template :index }.not_to raise_error
|
||||
end
|
||||
|
||||
it "renders the :index view" do
|
||||
get :index
|
||||
response.should render_template :index
|
||||
end
|
||||
end
|
||||
|
||||
describe "GET #show" do
|
||||
@@ -159,7 +154,7 @@ describe Suppliers::SectionsController, type: :controller do
|
||||
|
||||
it "deletes the section" do
|
||||
expect{
|
||||
delete :destroy, id: @section
|
||||
delete :destroy, id: @section
|
||||
}.to change(Section, :count).by(-1)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user