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.0.5 spec/helpers/authors_helper_spec.rb
mumuki-laboratory-7.0.4 spec/helpers/authors_helper_spec.rb
mumuki-laboratory-7.0.3 spec/helpers/authors_helper_spec.rb
mumuki-laboratory-7.0.2 spec/helpers/authors_helper_spec.rb
mumuki-laboratory-6.7.7 spec/helpers/authors_helper_spec.rb
mumuki-laboratory-6.7.6 spec/helpers/authors_helper_spec.rb
mumuki-laboratory-6.7.5 spec/helpers/authors_helper_spec.rb
mumuki-laboratory-7.0.1 spec/helpers/authors_helper_spec.rb
mumuki-laboratory-7.0.0 spec/helpers/authors_helper_spec.rb
mumuki-laboratory-6.7.4 spec/helpers/authors_helper_spec.rb
mumuki-laboratory-6.7.3 spec/helpers/authors_helper_spec.rb
mumuki-laboratory-6.7.2 spec/helpers/authors_helper_spec.rb
mumuki-laboratory-6.7.1 spec/helpers/authors_helper_spec.rb
mumuki-laboratory-6.7.0 spec/helpers/authors_helper_spec.rb