Skip to content

Commit

Permalink
fix test case
Browse files Browse the repository at this point in the history
  • Loading branch information
brickgao committed Sep 12, 2016
1 parent 7e5f0a1 commit 55f7e9c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/controllers/search_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ class SearchControllerTest < ActionController::TestCase
def setup
@user = users(:alice)
session[:user_id] = @user.id
Post.__elasticsearch__.index_name = 'posts_test'
Post.__elasticsearch__.create_index!
Post.__elasticsearch__.import
Post.__elasticsearch__.refresh_index!
end

test "should render successfully" do
Expand Down

0 comments on commit 55f7e9c

Please sign in to comment.