test/lib/troo/external/card_test.rb in troo-0.0.3 vs test/lib/troo/external/card_test.rb in troo-0.0.4

- old
+ new

@@ -101,8 +101,19 @@ it "fetches the comments for the card" do subject.size.must_equal(1) end end + + describe "when the mode is member" do + let(:member_id) { "5195fdb5a8c01a2318004f5d" } + let(:options) { { mode: :member, comments: false } } + + subject { described_class.fetch(member_id, options) } + + it "returns an empty collection" do + subject.must_equal([]) + end + end end end end