initial controller spec

This commit is contained in:
Lars Henrik Mai 2016-02-17 08:59:52 +01:00
parent 2280e47bab
commit 8f4342919f

View file

@ -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