Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 2ffe8f1490
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (18 sloc) 0.477 kb
require 'test_helper'
class ETagFilterTest < Test::Unit::TestCase
include TestHelper, RDig
def setup
@filter = ETagFilter.new
end
def test_add
d0 = OpenStruct.new(:etag => nil)
assert @filter.apply(d0)
d1 = OpenStruct.new(:etag => 'abc1234')
assert @filter.apply(d1)
assert !@filter.apply(d1)
d2 = OpenStruct.new(:etag => 'abc1235')
assert @filter.apply(d2)
assert !@filter.apply(d2)
assert !@filter.apply(d1)
end
end
Jump to Line
Something went wrong with that request. Please try again.