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

Version Path
bigbluebutton_rails-3.0.0 spec/support/matchers/respond_with_content_type.rb
bigbluebutton_rails-2.3.0 spec/support/matchers/respond_with_content_type.rb
bigbluebutton_rails-2.2.0 spec/support/matchers/respond_with_content_type.rb
bigbluebutton_rails-2.1.0 spec/support/matchers/respond_with_content_type.rb
bigbluebutton_rails-2.0.0 spec/support/matchers/respond_with_content_type.rb
bigbluebutton_rails-1.4.0 spec/support/matchers/respond_with_content_type.rb
bigbluebutton_rails-1.4.0.beta1 spec/support/matchers/respond_with_content_type.rb