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.23.3 lib/decidim/core/test/shared_examples/scopable_interface_examples.rb
decidim-core-0.23.2 lib/decidim/core/test/shared_examples/scopable_interface_examples.rb
decidim-core-0.23.1 lib/decidim/core/test/shared_examples/scopable_interface_examples.rb
decidim-core-0.23.1.rc1 lib/decidim/core/test/shared_examples/scopable_interface_examples.rb
decidim-core-0.23.0 lib/decidim/core/test/shared_examples/scopable_interface_examples.rb
decidim-core-0.22.0 lib/decidim/core/test/shared_examples/scopable_interface_examples.rb
decidim-core-0.21.0 lib/decidim/core/test/shared_examples/scopable_interface_examples.rb
decidim-core-0.20.1 lib/decidim/core/test/shared_examples/scopable_interface_examples.rb
decidim-core-0.20.0 lib/decidim/core/test/shared_examples/scopable_interface_examples.rb
decidim-core-0.19.1 lib/decidim/core/test/shared_examples/scopable_interface_examples.rb
decidim-core-0.18.1 lib/decidim/core/test/shared_examples/scopable_interface_examples.rb
decidim-core-0.19.0 lib/decidim/core/test/shared_examples/scopable_interface_examples.rb
decidim-core-0.17.2 lib/decidim/core/test/shared_examples/scopable_interface_examples.rb
decidim-core-0.18.0 lib/decidim/core/test/shared_examples/scopable_interface_examples.rb
decidim-core-0.17.1 lib/decidim/core/test/shared_examples/scopable_interface_examples.rb
decidim-core-0.16.1 lib/decidim/core/test/shared_examples/scopable_interface_examples.rb
decidim-core-0.17.0 lib/decidim/core/test/shared_examples/scopable_interface_examples.rb
decidim-core-0.16.0 lib/decidim/core/test/shared_examples/scopable_interface_examples.rb
decidim-core-0.15.2 lib/decidim/core/test/shared_examples/scopable_interface_examples.rb
decidim-core-0.15.1 lib/decidim/core/test/shared_examples/scopable_interface_examples.rb