Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- describe "Comments link" do
- before do
- @medical_provider = stub('medical provider', :actual_provider => @actual_provider, :id => 1, :name => 'Dr. Awesom', :comments.count => '2')
- end
- it 'should display comments count' do
- render_show
- response.should have_tag('div[class=?]', 'comments_badge')
- with_tag('a[href=?]', '#comments','2')
- end
- end
Add Comment
Please, Sign In to add comment