From 4898c5f85101ee45a2a47b46789b539b1f937c24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20de=20Villamil?= Date: Tue, 10 Sep 2013 10:11:10 +0200 Subject: [PATCH] Fixes specs. Issue #232 --- spec/helpers/author_helper_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/helpers/author_helper_spec.rb b/spec/helpers/author_helper_spec.rb index 9a91924744..24564ca343 100644 --- a/spec/helpers/author_helper_spec.rb +++ b/spec/helpers/author_helper_spec.rb @@ -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