relevance-tarantula 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
- :patch: 0
2
+ :patch: 1
3
3
  :major: 0
4
4
  :minor: 1
@@ -3,6 +3,12 @@ require File.join(File.dirname(__FILE__), "..", "..", "example_helper.rb")
3
3
  describe "Relevance::Tarantula::Link" do
4
4
  include ActionView::Helpers::UrlHelper
5
5
 
6
+ it "does not raise an error when initializing without href attribtue" do
7
+ link = Relevance::Tarantula::Link.new(Hpricot('<a="/foo">foo</a>').at('a'))
8
+ link.href.should == nil
9
+ link.method.should == :get
10
+ end
11
+
6
12
  it "parses anchor tags" do
7
13
  link = Relevance::Tarantula::Link.new(Hpricot('<a href="/foo">foo</a>').at('a'))
8
14
  link.href.should == '/foo'
@@ -24,7 +24,7 @@ class Relevance::Tarantula::Link
24
24
  @href = link
25
25
  @method = :get
26
26
  else # should be a tag
27
- @href = link['href'].downcase
27
+ @href = link['href'] ? link['href'].downcase : nil
28
28
  @tag = link
29
29
  end
30
30
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relevance-tarantula
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Relevance, Inc.
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-01-24 00:00:00 -08:00
12
+ date: 2009-01-25 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies: []
15
15