Module: Spec::Rails::Matchers::AssertSelect::TestResponseOrString
- Defined in:
- lib/spec/rails/matchers/assert_select.rb
Instance Method Summary collapse
Instance Method Details
#string? ⇒ Boolean
50 51 52 |
# File 'lib/spec/rails/matchers/assert_select.rb', line 50 def string? String === self end |
#test_response? ⇒ Boolean
44 45 46 47 48 |
# 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 |