public
Description: have_tag() without Rails' assert_select()
Clone URL: git://github.com/pd/rspec_hpricot_matchers.git
pd (author)
Wed Mar 26 12:05:48 -0700 2008
commit  1778be52222fde980e86024c90bfac393f010755
tree    7123384458cee3be8a12e04067b271c8e4a538c4
parent  4f0f1fa5a6b35992789168e8be7771b055c019a5
100644 28 lines (23 sloc) 0.948 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
require 'rake/gempackagetask'
require 'spec/rake/spectask'
 
task :default => :spec
Spec::Rake::SpecTask.new
 
gemspec = Gem::Specification.new do |spec|
  spec.name = 'rspec_hpricot_matchers'
  spec.summary = "Implementation of have_tag() rspec matcher using Hpricot"
  spec.version = '1.0'
  spec.author = 'Kyle Hargraves'
  spec.email = 'philodespotos@gmail.com'
  spec.description = <<-END
rspec_hpricot_matchers provides an implementation of rspec_on_rails'
have_tag() matcher which does not depend on Rails' assert_select.
Using Hpricot instead, the matcher is available to non-Rails projects,
and enjoys the full flexibility of Hpricot's advanced CSS and XPath
selector support.
END
  spec.files = FileList['lib/**/*', 'spec/**/*', 'README', 'MIT-LICENSE', 'Rakefile']
 
  spec.rubyforge_project = 'rspec-hpricot'
  spec.homepage = 'http://rspec-hpricot.rubyforge.org'
end
 
Rake::GemPackageTask.new(gemspec) do |spec|
end