Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Simple DSL for HTML template (ERB,HAML) testing using XPATH

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 .autotest
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .rspec
Octocat-spinner-32 Gemfile
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 TODO
Octocat-spinner-32 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.