Sha256: 43e9eff2a68ad11a87beebf7028d0a052d04f3b2b3e5fed58b5ec4ae24195551

Contents?: true

Size: 546 Bytes

Versions: 8

Compression:

Stored size: 546 Bytes

Contents

require 'spec_helper'

describe OrganizationListHelper, organization_workspace: :test do
  helper OrganizationListHelper

  context 'not not users path' do
    let(:request) { struct path: '/guides/1' }

    it { expect(organization_switch_url(Organization.current)).to eq 'http://test.localmumuki.io/guides/1' }
  end

  context 'on users path' do
    let(:request) { struct path: '/users/' }
    let(:controller_name) { 'users' }

    it { expect(organization_switch_url(Organization.current)).to eq 'http://test.localmumuki.io/' }
  end
end


Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mumuki-laboratory-5.11.0 spec/helpers/organization_list_helper_spec.rb
mumuki-laboratory-5.10.4 spec/helpers/organization_list_helper_spec.rb
mumuki-laboratory-5.10.3 spec/helpers/organization_list_helper_spec.rb
mumuki-laboratory-5.10.2 spec/helpers/organization_list_helper_spec.rb
mumuki-laboratory-5.10.1 spec/helpers/organization_list_helper_spec.rb
mumuki-laboratory-5.10.0 spec/helpers/organization_list_helper_spec.rb
mumuki-laboratory-5.9.1 spec/helpers/organization_list_helper_spec.rb
mumuki-laboratory-5.9.0 spec/helpers/organization_list_helper_spec.rb