Sha256: e9ca7f527b0cfcb27247ce12d717cd49b2c26ffa837114763a4b346b7940db5f
Contents?: true
Size: 522 Bytes
Versions: 1
Compression:
Stored size: 522 Bytes
Contents
require 'spec_helper' describe Stratify::GitHub::Presenter do describe '#to_html' do it 'wraps a GitHub repo URL with a link' do data = { 'type' => 'WatchEvent', 'url' => 'https://github.com/daemianmack/cronviz'} activity = Stratify::GitHub::Activity.from_api_hash(data) presenter = Stratify::GitHub::Presenter.new(activity) presenter.to_html.should match '<a href="https://github.com/daemianmack/cronviz">https://github.com/daemianmack/cronviz</a>' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stratify-github-0.1 | spec/stratify-github/presenter_spec.rb |