Changeset 242
- Timestamp:
- 02/28/08 11:29:07 (8 months ago)
- Files:
-
- rubygems/tarantula/trunk (modified) (1 prop)
- rubygems/tarantula/trunk/lib/relevance/tarantula/detail.html.erb (modified) (1 diff)
- rubygems/tarantula/trunk/lib/relevance/tarantula/result.rb (modified) (2 diffs)
- rubygems/tarantula/trunk/test/relevance/tarantula/result_test.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
rubygems/tarantula/trunk
- Property svn:ignore set to
tmp
- Property svn:ignore set to
rubygems/tarantula/trunk/lib/relevance/tarantula/detail.html.erb
r240 r242 17 17 <h1>Tarantula report detail <%= short_description %></h1> 18 18 <p>Generated on <%= Time.now %> (<a href="index.html">Top</a>)</p> 19 <p>Visit <a href="<%= full_url %>"><%= full_url %></a></p> 19 20 <p>Response: <%= code %></p> 20 21 <p>Referrer: <%= referrer || "" %></p> rubygems/tarantula/trunk/lib/relevance/tarantula/result.rb
r202 r242 1 1 class Relevance::Tarantula::Result 2 2 HASHABLE_ATTRS = [:success, :method, :url, :response, :referrer, :data, :description, :log] 3 DEFAULT_LOCALHOST = "http://localhost:3000" 3 4 attr_accessor *HASHABLE_ATTRS 4 5 include Relevance::Tarantula … … 24 25 def body 25 26 response && response.body 27 end 28 def full_url 29 "#{DEFAULT_LOCALHOST}#{url}" 26 30 end 27 31 ALLOW_NNN_FOR = /^allow_(\d\d\d)_for$/ rubygems/tarantula/trunk/test/relevance/tarantula/result_test.rb
r191 r242 19 19 @result.sequence_number.should == 1 20 20 @result.class.next_number.should == 1 21 end 22 23 it "has link to the url at localhost" do 24 @result.full_url.should == "http://localhost:3000/some/url?arg1=foo&arg2=bar" 21 25 end 22 26
