Skip to content
Extraits de code Groupes Projets
statistics_controller_spec.rb 787 octets
Newer Older
  • Learn to ignore specific revisions
  • #   Copyright (c) 2010-2011, Diaspora Inc.  This file is
    #   licensed under the Affero General Public License version 3 or later.  See
    #   the COPYRIGHT file.
    
    
    describe StatisticsController, type: :controller do
      describe "#statistics" do
        it "responds to format json" do
          get :statistics, format: "json"
          expect(response.code).to eq("200")
    
    
        it "contains json" do
          get :statistics, format: "json"
    
          expect(json["name"]).to be_present
    
        it "responds to html" do
          get :statistics, format: "html"
          expect(response.code).to eq("200")
        end
    
        it "responds to mobile" do
          get :statistics, format: "mobile"
          expect(response.code).to eq("200")
        end
      end