Sha256: 6edc9aaf13c562b9b4f1d86218847801242da6dd23bf17a1ba3a9a07d10deb1a
Contents?: true
Size: 486 Bytes
Versions: 3
Compression:
Stored size: 486 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe CommentUtil do before(:each) do trac = {:url => 'http://localhost/trac', :username => 'username', :password => 'password'} @comment_util = CommentUtil.new(1, trac, Nokogiri::HTML(File.open('spec/commentutils-data.html'))) end it "should return all comments for a ticket" do @comment_util.comments.should be_instance_of(Array) @comment_util.comments.first[:comment_id] == 1 end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
taskmapper-trac-0.7.0 | spec/commentutil_spec.rb |
taskmapper-trac-0.6.1 | spec/commentutil_spec.rb |
taskmapper-trac-0.6.0 | spec/commentutil_spec.rb |