Skip to content

Commit

Permalink
Fixes specs for tags autocomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
Frédéric de Villamil committed Mar 4, 2012
1 parent 5ae108a commit 63843aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/controllers/admin/content_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -591,19 +591,19 @@ def base_article(options={})
it 'should return foo for keywords fo' do
get :auto_complete_for_article_keywords, :article => {:keywords => 'fo'}
response.should be_success
response.body.should == '<ul><li>foo</li></ul>'
response.body.should == '<ul class="unstyled" id="autocomplete"><li>foo</li></ul>'
end

it 'should return nothing for hello' do
get :auto_complete_for_article_keywords, :article => {:keywords => 'hello'}
response.should be_success
response.body.should == '<ul></ul>'
response.body.should == '<ul class="unstyled" id="autocomplete"></ul>'
end

it 'should return bar and bazz for ba keyword' do
get :auto_complete_for_article_keywords, :article => {:keywords => 'ba'}
response.should be_success
response.body.should == '<ul><li>bar</li><li>bazz</li></ul>'
response.body.should == '<ul class="unstyled" id="autocomplete"><li>bar</li><li>bazz</li></ul>'
end
end

Expand Down

0 comments on commit 63843aa

Please sign in to comment.