Sha256: 22ac1cf4493d612da44e813d4156ac171979a57dcbfdcc14f0d768088e0ba6b1
Contents?: true
Size: 280 Bytes
Versions: 7
Compression:
Stored size: 280 Bytes
Contents
# Example: # before(:each) { get :index, :format => 'json' } # it { should respond_with_content_type("application/json") } RSpec::Matchers.define :respond_with_content_type do |expected| match do |controller| response.header['Content-Type'].include?(expected) end end
Version data entries
7 entries across 7 versions & 1 rubygems