Sha256: b5239f4d9a395ce2273663824d543e22424105ead3c1b97f59aa34d14807276d

Contents?: true

Size: 236 Bytes

Versions: 27

Compression:

Stored size: 236 Bytes

Contents

# frozen_string_literal: true

shared_context "authenticated user" do
  let(:user) { create(:user, :confirmed) }

  before do
    @request.env["decidim.current_organization"] = user.organization
    sign_in user, scope: :user
  end
end

Version data entries

27 entries across 27 versions & 2 rubygems

Version Path
decidim-dev-0.7.4 lib/decidim/dev/test/rspec_support/authenticated_controller_context.rb
decidim-dev-0.7.3 lib/decidim/dev/test/rspec_support/authenticated_controller_context.rb
decidim-dev-0.7.2 lib/decidim/dev/test/rspec_support/authenticated_controller_context.rb
decidim-dev-0.7.1 lib/decidim/dev/test/rspec_support/authenticated_controller_context.rb
decidim-dev-0.7.0 lib/decidim/dev/test/rspec_support/authenticated_controller_context.rb
decidim-dev-0.6.8 lib/decidim/dev/test/rspec_support/authenticated_controller_context.rb
decidim-0.6.8 decidim-dev/lib/decidim/dev/test/rspec_support/authenticated_controller_context.rb
decidim-dev-0.6.7 lib/decidim/dev/test/rspec_support/authenticated_controller_context.rb
decidim-0.6.7 decidim-dev/lib/decidim/dev/test/rspec_support/authenticated_controller_context.rb
decidim-dev-0.6.6 lib/decidim/dev/test/rspec_support/authenticated_controller_context.rb
decidim-0.6.6 decidim-dev/lib/decidim/dev/test/rspec_support/authenticated_controller_context.rb
decidim-dev-0.6.5 lib/decidim/dev/test/rspec_support/authenticated_controller_context.rb
decidim-0.6.5 decidim-dev/lib/decidim/dev/test/rspec_support/authenticated_controller_context.rb
decidim-dev-0.6.4 lib/decidim/dev/test/rspec_support/authenticated_controller_context.rb
decidim-0.6.4 decidim-dev/lib/decidim/dev/test/rspec_support/authenticated_controller_context.rb
decidim-dev-0.6.3 lib/decidim/dev/test/rspec_support/authenticated_controller_context.rb
decidim-0.6.3 decidim-dev/lib/decidim/dev/test/rspec_support/authenticated_controller_context.rb
decidim-dev-0.6.2 lib/decidim/dev/test/rspec_support/authenticated_controller_context.rb
decidim-0.6.2 decidim-dev/lib/decidim/dev/test/rspec_support/authenticated_controller_context.rb
decidim-dev-0.6.1 lib/decidim/dev/test/rspec_support/authenticated_controller_context.rb