Sha256: 912380ac95773a5bf5d85bbd3b35c1158dcc2393a43e9426c26a80de0668bc0b
Contents?: true
Size: 1.25 KB
Versions: 1
Compression:
Stored size: 1.25 KB
Contents
require "spec_helper" describe Onebox::Engine::GithubPullRequestOnebox do let(:link) { "https://github.com/discourse/discourse/pull/1253/" } before do fake(link, response("githubpullrequest")) end it_behaves_like "an engine" describe "#to_html" do let(:html) { described_class.new(link).to_html } it "has pull request author" do expect(html).to include("jamesaanderson") end it "has pull request title" do expect(html).to include("Add audio onebox") end it "has repo name" do expect(html).to include("discourse") end it "has commit author gravatar" do expect(html).to include("b3e9977094ce189bbb493cf7f9adea21") end it "has commit description" do expect(html).to include("8168") end it "has commit time and date" do expect(html).to include("2013-07-26T02:05:53Z") end it "has number of commits" do expect(html).to include("1") end it "has number of files changed" do expect(html).to include("4") end it "has number of additions" do expect(html).to include("19") end it "has number of deletions" do expect(html).to include("1") end it "has URL" do expect(html).to include(link) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
onebox-1.1.0 | spec/lib/onebox/engine/github_pullrequest_onebox_spec.rb |