From 0f0e9c7b906f14a0789844cf7178a99e3da81d14 Mon Sep 17 00:00:00 2001 From: Nicolae Claudius Date: Fri, 30 Dec 2011 05:28:05 -0800 Subject: [PATCH] unfocus, cut unused --- spec/controllers/records_controller_spec.rb | 39 +++++++-------------- 1 file changed, 13 insertions(+), 26 deletions(-) diff --git a/spec/controllers/records_controller_spec.rb b/spec/controllers/records_controller_spec.rb index bf41b81..8317492 100644 --- a/spec/controllers/records_controller_spec.rb +++ b/spec/controllers/records_controller_spec.rb @@ -1,33 +1,8 @@ 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 RecordsController do - - # This should return the minimal set of attributes required to create a valid - # Record. As you add validations to Record, be sure to - # update the return value of this method accordingly. - def valid_attributes - {} - end - describe "PUT modify", :focus => true do + describe "PUT modify" do include_context "data" before do @@ -63,7 +38,19 @@ describe RecordsController do end end + +end + +# TODO implement me +__END__ + # This should return the minimal set of attributes required to create a valid + # Record. As you add validations to Record, be sure to + # update the return value of this method accordingly. + def valid_attributes + {} + end + describe "GET index" do it "assigns all records as @records" do record = Record.create! valid_attributes