Sha256: 5568cb56979f40b4df363f3e0f53924d9996c26ba3a0e9ec402f044cd002ef12

Contents?: true

Size: 413 Bytes

Versions: 75

Compression:

Stored size: 413 Bytes

Contents

# frozen_string_literal: true

require "spec_helper"

shared_examples_for "scopable interface" do
  let!(:scope) { create(:scope, organization: model.participatory_space.organization) }

  before do
    model.update(scope: scope)
  end

  describe "scope" do
    let(:query) { "{ scope { id } }" }

    it "has a scope" do
      expect(response).to include("scope" => { "id" => scope.id.to_s })
    end
  end
end

Version data entries

75 entries across 75 versions & 1 rubygems

Version Path
decidim-core-0.27.9 lib/decidim/core/test/shared_examples/scopable_interface_examples.rb
decidim-core-0.27.8 lib/decidim/core/test/shared_examples/scopable_interface_examples.rb
decidim-core-0.27.7 lib/decidim/core/test/shared_examples/scopable_interface_examples.rb
decidim-core-0.27.6 lib/decidim/core/test/shared_examples/scopable_interface_examples.rb
decidim-core-0.26.10 lib/decidim/core/test/shared_examples/scopable_interface_examples.rb
decidim-core-0.26.9 lib/decidim/core/test/shared_examples/scopable_interface_examples.rb
decidim-core-0.27.5 lib/decidim/core/test/shared_examples/scopable_interface_examples.rb
decidim-core-0.26.8 lib/decidim/core/test/shared_examples/scopable_interface_examples.rb
decidim-core-0.27.4 lib/decidim/core/test/shared_examples/scopable_interface_examples.rb
decidim-core-0.27.3 lib/decidim/core/test/shared_examples/scopable_interface_examples.rb
decidim-core-0.26.7 lib/decidim/core/test/shared_examples/scopable_interface_examples.rb
decidim-core-0.26.5 lib/decidim/core/test/shared_examples/scopable_interface_examples.rb
decidim-core-0.27.2 lib/decidim/core/test/shared_examples/scopable_interface_examples.rb
decidim-core-0.27.1 lib/decidim/core/test/shared_examples/scopable_interface_examples.rb
decidim-core-0.26.4 lib/decidim/core/test/shared_examples/scopable_interface_examples.rb
decidim-core-0.27.0 lib/decidim/core/test/shared_examples/scopable_interface_examples.rb
decidim-core-0.26.3 lib/decidim/core/test/shared_examples/scopable_interface_examples.rb
decidim-core-0.27.0.rc2 lib/decidim/core/test/shared_examples/scopable_interface_examples.rb
decidim-core-0.27.0.rc1 lib/decidim/core/test/shared_examples/scopable_interface_examples.rb
decidim-core-0.26.2 lib/decidim/core/test/shared_examples/scopable_interface_examples.rb