Module Spec::Rails::Matchers::AssertSelect::TestResponseOrString

  1. lib/spec/rails/matchers/assert_select.rb

Methods

public instance

  1. string?
  2. test_response?

Public instance methods

string? ()
[show source]
# File lib/spec/rails/matchers/assert_select.rb, line 50
          def string?
            String === self
          end
test_response? ()
[show source]
# File lib/spec/rails/matchers/assert_select.rb, line 44
          def test_response?
            ActionController::TestResponse === self and
                                               !self.headers['Content-Type'].blank? and
                                               self.headers['Content-Type'].to_sym == :xml
          end