diff options
| author | mista mo <cake-eater@mokhan.ca> | 2012-05-12 19:05:06 -0600 |
|---|---|---|
| committer | mista mo <cake-eater@mokhan.ca> | 2012-05-12 19:05:06 -0600 |
| commit | 6ce830e14fe2bf7e807535eac4d3faecdb9eb6cc (patch) | |
| tree | 46ced92879fa3bf0339041bb0abf0ace66621daf /spec/controllers | |
| parent | 15b95b4c118eee1f4f845a26b2b18ec2c0da9c51 (diff) | |
fix broken tests and remove unneccessary items from gemlock.
Diffstat (limited to 'spec/controllers')
| -rw-r--r-- | spec/controllers/favorites_controller_spec.rb | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/spec/controllers/favorites_controller_spec.rb b/spec/controllers/favorites_controller_spec.rb deleted file mode 100644 index 189511d4..00000000 --- a/spec/controllers/favorites_controller_spec.rb +++ /dev/null @@ -1,58 +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 FavoritesController do - - # This should return the minimal set of attributes required to create a valid - # Like. As you add validations to Like, be sure to - # update the return value of this method accordingly. - def valid_attributes - {} - end - - describe "GET index" do - it "assigns all favorites as @favorites" do - favorite = Favorite.create! valid_attributes - get :index, :creation_id => "1" - assigns(:favorites).should eq([favorite]) - end - end - - describe "POST create" do - describe "with valid params" do - it "creates a new Favorite" do - expect { - post :create, :favorite => valid_attributes - }.to change(Favorite, :count).by(1) - end - - it "assigns a newly created favorite as @favorite" do - post :create, :favorite => valid_attributes - assigns(:favorite).should be_a(favorite) - assigns(:favorite).should be_persisted - end - - it "redirects to the created favorite" do - post :create, :favorite => valid_attributes - response.should redirect_to(Favorite.last) - end - end - end -end |
