Permalink
Browse files

Use link_to_profile to link to the contest suggesters

  • Loading branch information...
1 parent 97f4252 commit ba0950f17ddfc0395e314dbbb850ab926bf154cd @jeffkreeftmeijer jeffkreeftmeijer committed Oct 9, 2011
Showing with 3 additions and 3 deletions.
  1. +1 −1 app/views/contests/show.haml
  2. +2 −2 spec/acceptance/contests_spec.rb
@@ -5,7 +5,7 @@
%h1= @contest.name
%footer#submitter
Submitted by
- =link_to @contest.user.login, @contest.user
+ =link_to_profile @contest.user
= raw Kramdown::Document.new(@contest.description).to_html
@@ -77,7 +77,7 @@
:description => 'Write an [RSpec](http://relishapp.com/rspec) extension that solves a problem you are having.',
:starting_on => Date.yesterday.to_time,
:entries => [ Fabricate(:entry_with_files), @entry ],
- :user => Fabricate(:user, :login => 'bob')
+ :user => Fabricate(:user, :login => 'bob', :name => 'Bob')
)
end
end
@@ -88,9 +88,9 @@
end
scenario 'see the contest submitter' do
- page.should have_content 'Submitted by bob'
page.should have_link 'bob'
body.should include 'href="/users/bob"'
+ body.should include 'avatar/1dae832a3c5ae2702f34ed50a40010e8.png'
end
scenario 'read the markdown contest description' do

0 comments on commit ba0950f

Please sign in to comment.