Skip to content

Commit

Permalink
Fixes specs. Issue publify#232
Browse files Browse the repository at this point in the history
  • Loading branch information
Frédéric de Villamil committed Sep 10, 2013
1 parent e905d2c commit 4898c5f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/helpers/author_helper_spec.rb
Expand Up @@ -4,17 +4,17 @@
include AuthorsHelper

it 'should display the item as a list item if show_item is true' do
item = display_profile_item(item = 'my@jabber.org', show_item = true, item_desc = 'Jabber:')
item = display_profile_item(item = 'my@jabber.org', item_desc = 'Jabber:')
item.should have_selector('li', :content => 'Jabber: my@jabber.org')
end

it 'should NOT display the item as a list item if show_item is false' do
item = display_profile_item(item = 'my@jabber.org', show_item = false, item_desc = 'Jabber:')
item = display_profile_item(item = '', item_desc = 'Jabber:')
item.should be_nil
end

it 'should display a link if the item is an url' do
item = display_profile_item(item = 'http://twitter.com/mytwitter', show_item = true, item_desc = 'Twitter:')
item = display_profile_item(item = 'http://twitter.com/mytwitter', item_desc = 'Twitter:')
item.should have_selector('li') do
have_selector('a', :content => 'http://twitter.com/mytwitter')
end
Expand Down

0 comments on commit 4898c5f

Please sign in to comment.