Skip to content

Commit

Permalink
attempted fix for publiclab#992
Browse files Browse the repository at this point in the history
  • Loading branch information
jywarren committed Nov 21, 2016
1 parent b0c3184 commit 7a313a6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/solr/searches_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,10 @@ def setup

test 'should create new search' do
assert_difference('SearchRecord.count') do
post :create, search: {
post :create,
title: 'advanced search',
main_type: 'Notes or Wiki updates',
key_words: 'blog'
}
end
assert_equal 'Advanced search', assigns(:search).title
assert_equal @user.id, assigns(:search).user_id
Expand All @@ -56,10 +55,10 @@ def setup
end

test 'should update advanced search' do
put :update, id: @advanced_search, search: {
put :update,
id: @advanced_search,
key_words: 'Ujitha',
main_type: 'User Profiles'
}
assert_equal 'Advanced search', assigns(:search).title
assert_equal '2', assigns(:search).user_id
assert_equal 'User Profiles', assigns(:search).main_type
Expand Down

0 comments on commit 7a313a6

Please sign in to comment.