From 8f4342919f168d7988ec91ef7d319ce012c39e35 Mon Sep 17 00:00:00 2001 From: Lars Henrik Mai Date: Wed, 17 Feb 2016 08:59:52 +0100 Subject: [PATCH] initial controller spec --- spec/controllers/search_controller_spec.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 spec/controllers/search_controller_spec.rb diff --git a/spec/controllers/search_controller_spec.rb b/spec/controllers/search_controller_spec.rb new file mode 100644 index 0000000..fbcbd18 --- /dev/null +++ b/spec/controllers/search_controller_spec.rb @@ -0,0 +1,12 @@ +require 'rails_helper' + +RSpec.describe SearchController, type: :controller do + + describe "GET #index" do + it "returns http success" do + get :index, body: 'leipzig' + expect(response).to have_http_status(:success) + end + end + +end