Sha256: 6edb93f169a17889d150e134421fbd3c7014650dc3a04ae4eaf6350e1e504a48

Contents?: true

Size: 537 Bytes

Versions: 114

Compression:

Stored size: 537 Bytes

Contents

require 'spec_helper'

describe AuthorsHelper, organization_workspace: :test do
  helper AuthorsHelper

  describe 'authoring_notes' do
    context 'with collaborators' do
      let(:guide) { create(:guide, authors: 'Writer', collaborators: 'Collaborators') }
      it { expect(attribution_caption(guide)).to include "many others" }
    end
    
    context 'with no collaborators' do
      let(:guide) { create(:guide, authors: 'Writer') }
      it { expect(attribution_caption(guide)).not_to include "many others" }
    end

  end
end

Version data entries

114 entries across 114 versions & 1 rubygems

Version Path
mumuki-laboratory-7.6.2 spec/helpers/authors_helper_spec.rb
mumuki-laboratory-7.6.1 spec/helpers/authors_helper_spec.rb
mumuki-laboratory-7.6.0 spec/helpers/authors_helper_spec.rb
mumuki-laboratory-7.5.2 spec/helpers/authors_helper_spec.rb
mumuki-laboratory-7.5.1 spec/helpers/authors_helper_spec.rb
mumuki-laboratory-7.5.0 spec/helpers/authors_helper_spec.rb
mumuki-laboratory-7.4.2 spec/helpers/authors_helper_spec.rb
mumuki-laboratory-7.4.1 spec/helpers/authors_helper_spec.rb
mumuki-laboratory-7.4.0 spec/helpers/authors_helper_spec.rb
mumuki-laboratory-7.3.1 spec/helpers/authors_helper_spec.rb
mumuki-laboratory-7.3.0 spec/helpers/authors_helper_spec.rb
mumuki-laboratory-7.2.0 spec/helpers/authors_helper_spec.rb
mumuki-laboratory-7.1.0 spec/helpers/authors_helper_spec.rb
mumuki-laboratory-7.0.12 spec/helpers/authors_helper_spec.rb
mumuki-laboratory-7.0.11 spec/helpers/authors_helper_spec.rb
mumuki-laboratory-7.0.10 spec/helpers/authors_helper_spec.rb
mumuki-laboratory-7.0.9 spec/helpers/authors_helper_spec.rb
mumuki-laboratory-7.0.8 spec/helpers/authors_helper_spec.rb
mumuki-laboratory-7.0.7 spec/helpers/authors_helper_spec.rb
mumuki-laboratory-7.0.6 spec/helpers/authors_helper_spec.rb