Skip to content
Simple DSL for HTML template (ERB,HAML) testing using XPATH
Ruby
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
spec
.autotest
.gitignore
.rspec
Gemfile
LICENSE
README.md
Rakefile
TODO
template-test.gemspec

README.md

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.

Something went wrong with that request. Please try again.