0.0
No commit activity in last 3 years
No release in over 3 years
Provides a simple DSL to test the rendering of HTML templates defined in ERB or HAML using XPATH expressions
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 0
>= 0
 Project Readme

Template::Test

Template::Test provides a simple DSL to test the rendering of HTML templates defined in ERB or HAML using XPATH expressions.

Installation

Add this line to your application's Gemfile:

gem 'template-test'

Using with RSpec

In your test_helper.rb include the `Template::Test module in the rspec config:

require 'template-test'

RSpec.configure do |config|
   config.include Template::Test
end

Examples

Have a look at the *_spec.rb files in the spec folder.