summaryrefslogtreecommitdiff
path: root/test/helpers/test_adapter.rb
blob: 46d471337c8f7ea21c91aa506af4fdd4331d1832 (plain)
1
2
3
4
5
6
7
8
9
10
class TestAdapter
  def initialize(status, content)
    @status = status
    @content = content
  end

  def get(url, opts)
    yield @status, @content
  end
end