spec/controllers/dashboard_controller_spec.rb in sufia-3.7.0 vs spec/controllers/dashboard_controller_spec.rb in sufia-3.7.1

- old
+ new

@@ -64,20 +64,17 @@ it "should be a success" do response.should be_success response.should render_template('dashboard/index') end it "should return an array of documents I can edit" do - editable_docs_response = Blacklight.solr.get "select", :params=>{:fq=>["edit_access_group_ssim:public OR edit_access_person_ssim:#{@user.user_key}"]} + editable_docs_response = ActiveFedora::SolrService.instance.conn.get "select", :params=>{:fq=>["edit_access_group_ssim:public OR edit_access_person_ssim:#{@user.user_key}"]} assigns(:result_set_size).should eql(editable_docs_response["response"]["numFound"]) assigns(:document_list).each {|doc| doc.should be_kind_of SolrDocument} end - context "with render views" do - render_views - it "should paginate" do - xhr :get, :index, per_page: 2 - response.should be_success - response.should render_template('dashboard/index') - end + it "should paginate" do + xhr :get, :index, per_page: 2 + response.should be_success + response.should render_template('dashboard/index') end end end describe "not logged in as a user" do describe "#index" do