spec/lib/ki/middleware_spec.rb in ki-0.4.11 vs spec/lib/ki/middleware_spec.rb in ki-0.4.12
- old
+ new
@@ -1,11 +1,13 @@
+# frozen_string_literal: true
+
require 'spec_helper'
describe Ki::Middleware do
context Ki::Middleware::ApiHandler do
it 'should only handle urls maped from objects that extend Ki::Model' do
get '/asd.json'
json
- last_response.status.should == 404
+ expect(last_response.status).to eq 404
end
end
end