lib/hoboken/templates/spec/app_spec.rb.tt in hoboken-0.9.0 vs lib/hoboken/templates/spec/app_spec.rb.tt in hoboken-0.10.0
- old
+ new
@@ -1,8 +1,7 @@
# frozen_string_literal: true
-# rubocop:disable RSpec/DescribeClass
RSpec.describe 'GET /', rack: true do
before { get '/' }
it { expect(last_response).to have_http_status(:ok) }
<% if options[:api_only] -%>
@@ -10,6 +9,5 @@
<% else -%>
it { expect(last_response).to have_content_type(:html) }
<% end -%>
it { expect(last_response.body).to include('Smoke test successful!') }
end
-# rubocop:enable RSpec/DescribeClass