Sha256: 5962901fa65560a48f0f23f814b7967ae6dcfb1e206958b610216834ef805132

Contents?: true

Size: 648 Bytes

Versions: 1

Compression:

Stored size: 648 Bytes

Contents

require_relative '../../../test_helper'

module Troo
  module Presenters
    describe Member do
      let(:described_class)     { Member }
      let(:options)             { {} }
      let(:external_member_ids) { ['20050'] }

      before do
        @card = Fabricate(:card,
                          external_member_ids: external_member_ids)
        @member = Fabricate(:member)
      end

      after { database_cleanup }

      describe '#show' do
        subject { described_class.new(@card, options).show }

        it 'returns the members as a sentence' do
          subject.must_equal('@gavinlaking1')
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
troo-0.0.10 test/lib/troo/presenters/member_test.rb