If should
is deprecated, I do not want to enable it's usage. What is the new expect
syntax for this?
describe '#show response' do
it "should return html data only" do
get :show, params: {:id => "bike"}
response.header['Content-Type'].should include 'text/html'
end
it "should not return json data" do
get :show, params: {:id => "bike"}
response.header['Content-Type'].should_not include 'application/json'
end
it "should not return js data" do
get :show, params: {:id => "bike"}
response.header['Content-Type'].should_not include 'text/javascript'
end
end
end
Deprecation Warnings:
Using
should
from rspec-expectations' old:should
syntax without explicitly enabling the syntax is deprecated. Use the new:expect
syntax or explicitly enable:should
withconfig.expect_with(:rspec) { |c| c.syntax = :should }
instead.