Sha256: 9f8a5a54fa81dd7cc04cf6c9d864f01b617a570448dbafcac96d8c1c85dd0d4a

Contents?: true

Size: 366 Bytes

Versions: 12

Compression:

Stored size: 366 Bytes

Contents

# frozen_string_literal: true

shared_examples "a blank component" do |engine|
  routes { engine.routes }

  describe "GET settings" do
    it "redirects to settings" do
      get :settings, params: { component_id: component }
      expect(response).to have_http_status(:redirect)
      expect(response.location).to include("#{component.id}/edit")
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
decidim-decidim_awesome-0.10.3 lib/decidim/decidim_awesome/test/shared_examples/controller_examples.rb
decidim-decidim_awesome-0.11.2 lib/decidim/decidim_awesome/test/shared_examples/controller_examples.rb
decidim-decidim_awesome-0.11.1 lib/decidim/decidim_awesome/test/shared_examples/controller_examples.rb
decidim-decidim_awesome-0.10.2 lib/decidim/decidim_awesome/test/shared_examples/controller_examples.rb
decidim-decidim_awesome-0.10.1 lib/decidim/decidim_awesome/test/shared_examples/controller_examples.rb
decidim-decidim_awesome-0.10.0 lib/decidim/decidim_awesome/test/shared_examples/controller_examples.rb
decidim-decidim_awesome-0.9.3 lib/decidim/decidim_awesome/test/shared_examples/controller_examples.rb
decidim-decidim_awesome-0.9.1 lib/decidim/decidim_awesome/test/shared_examples/controller_examples.rb
decidim-decidim_awesome-0.8.3 lib/decidim/decidim_awesome/test/shared_examples/controller_examples.rb
decidim-decidim_awesome-0.8.2 lib/decidim/decidim_awesome/test/shared_examples/controller_examples.rb
decidim-decidim_awesome-0.8.1 lib/decidim/decidim_awesome/test/shared_examples/controller_examples.rb
decidim-decidim_awesome-0.8.0 lib/decidim/decidim_awesome/test/shared_examples/controller_examples.rb