expertiza/expertiza

View on GitHub
spec/helpers/review_bids_helper_spec.rb

Summary

Maintainability
A
0 mins
Test Coverage
describe ReviewBidsHelper do
  let(:topic) { build(:topic) }
  describe '#get_intelligent_topic_row_review_bids' do
    context 'when no selected topics' do
      it 'returns a row' do
        allow(ReviewBid).to receive(:where).and_return([])
        expect(helper.get_intelligent_topic_row_review_bids(topic, nil, 2)).to eq("<tr id=\"topic_\" style=\"background-color:rgb(47,352,0)\">")
      end
    end
  end
end