Class: Test::Spec::Rails::TestTemplate

Inherits:
TestDummy
  • Object
show all
Defined in:
lib/test/spec/rails/test_template.rb

Instance Method Summary collapse

Methods inherited from TestDummy

#initialize, #inspect, #method_missing, #real_controller, #real_request, #real_response

Constructor Details

This class inherits a constructor from Test::Spec::Rails::TestDummy

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Test::Spec::Rails::TestDummy

Instance Method Details

#should_equal(template, message = nil) ⇒ Object Also known as: should_be



4
5
6
# File 'lib/test/spec/rails/test_template.rb', line 4

def should_equal(template, message=nil)
  assert_template template, message
end

#to_sObject



9
10
11
# File 'lib/test/spec/rails/test_template.rb', line 9

def to_s
  @response.rendered_file
end