Sha256: 7bc2c4ba82813e7d2c1d1003061ad20ed33a5cf40a00842ca04a495fcfc6cfe6
Contents?: true
Size: 1.04 KB
Versions: 1
Compression:
Stored size: 1.04 KB
Contents
require_relative '../../../test_helper' module Troo module Presenters describe Card do let(:described_class) { Card } let(:options) { {} } before do @card = Fabricate(:card) @board = Fabricate(:board) @list = Fabricate(:list) @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 { capture_io { described_class.show(@card, options) }.join } it 'renders the view' do subject.must_match(/My Test Card/) subject.must_match(/No comments have been left/) subject.must_match(/Metadata/) 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/card_test.rb |