Sha256: 007c5a8d202380e6baf45fc2104e7e248c2d5c8025a8be6748f372881ed3c2a2
Contents?: true
Size: 998 Bytes
Versions: 6
Compression:
Stored size: 998 Bytes
Contents
# frozen_string_literal: true require "spec_helper" shared_examples "implements stats type" do context "when the space implements stats" do let(:expected_data) do { "stats" => [ { "name" => "dummies_count_high", "value" => 0 }, { "name" => "pages_count", "value" => 0 }, { "name" => "proposals_count", "value" => 0 }, { "name" => "meetings_count", "value" => 0 }, { "name" => "budgets_count", "value" => 0 }, { "name" => "surveys_count", "value" => 0 }, { "name" => "results_count", "value" => 0 }, { "name" => "debates_count", "value" => 0 }, { "name" => "sortitions_count", "value" => 0 }, { "name" => "posts_count", "value" => 0 } ] } end it "executes successfully" do expect { response }.not_to raise_error end it "returns the correct response" do expect(stats_response).to match_array(expected_data["stats"]) end end end
Version data entries
6 entries across 6 versions & 1 rubygems