Sha256: 09e95e249042d2ca8889c1338b992a1b6a7fa246678a2958c86ca1906828b842
Contents?: true
Size: 1.03 KB
Versions: 1
Compression:
Stored size: 1.03 KB
Contents
require_relative '../../../test_helper' module Troo module Presenters describe Member do let(:described_class) { Member } let(:options) { {} } let(:external_member_ids) { ['5195fdb5a8c01a2318004f5d'] } before do @card = Fabricate(:card, external_member_ids: external_member_ids) @member = Fabricate(:member) end after { database_cleanup } describe '#initialize' do subject { described_class.new(@card, options) } it 'assigns the card to an instance variable' do subject.instance_variable_get('@card').must_equal(@card) end it 'assigns the options to an instance variable' do subject.instance_variable_get('@options') .must_equal(options) end end describe '#show' do subject { described_class.show(@card, options) } 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.8 | test/lib/troo/presenters/member_test.rb |