public
Description: have_tag() without Rails' assert_select()
Clone URL: git://github.com/pd/rspec_hpricot_matchers.git
Search Repo:
pd (author)
Mon Mar 31 04:55:56 -0700 2008
commit  985b104193e47c74e9fdcfd125e1db915debb79c
tree    391ea693af55e69335edb943b9db37a7660d5895
parent  1778be52222fde980e86024c90bfac393f010755
100644 27 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
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