Skip to content

Instantly share code, notes, and snippets.

@jcoyne
Created June 2, 2016 18:46
Show Gist options
  • Save jcoyne/f73a6750471b4770c6f9e79e2fd87959 to your computer and use it in GitHub Desktop.
Save jcoyne/f73a6750471b4770c6f9e79e2fd87959 to your computer and use it in GitHub Desktop.
10) catalog/_index_list_default displays metadata
Failure/Error: expect(rendered).to include '<a href="http://creativecommons.org/publicdomain/zero/1.0/">CC0 1.0 Universal</a>, <a href="http://creativecommons.org/publicdomain/mark/1.0/">Public Domain Mark 1.0</a>, and <a href="http://www.europeana.eu/portal/rights/rr-r.html">All rights reserved</a>'
expected " <div class=\"col-sm-9\">\n <table class=\"table\">\n <tr>\n <th><span class=\"attribute-label h4\">Description:</span></th>\n <td><span itemprop=\"description\">This links to <a href=\"http://example.com/\"><span class=\"glyphicon glyphicon-new-window\"></span> http://example.com/</a> What about that?</span></td>\n </tr>\n <tr>\n <th><span class=\"attribute-label h4\">Creator:</span></th>\n <td><span itemprop=\"creator\">Justin</span> and <span itemprop=\"creator\">Joe</span></td>\n </tr>\n <tr>\n <th><span class=\"attribute-label h4\">Depositor:</span></th>\n <td><a href=\"/users/atz@stanford-dot-edu\">[email protected]</a></td>\n </tr>\n <tr>\n <th><span class=\"attribute-label h4\">Owner:</span></th>\n <td><a href=\"/users/jcoyne@justincoyne-dot-com\">[email protected]</a></td>\n </tr>\n <tr>\n <th><span class=\"attribute-label h4\">Date Uploaded:</span></th>\n <td><span itemprop=\"datePublished\">03/14/2013</span></td>\n </tr>\n <tr>\n <th><span class=\"attribute-label h4\">Rights:</span></th>\n <td>http://creativecommons.org/publicdomain/zero/1.0/, http://creativecommons.org/publicdomain/mark/1.0/, and http://www.europeana.eu/portal/rights/rr-r.html</td>\n </tr>\n </table>\n </div>\n\n" to include "<a href=\"http://creativecommons.org/publicdomain/zero/1.0/\">CC0 1.0 Universal</a>, <a href=\"http://creativecommons.org/publicdomain/mark/1.0/\">Public Domain Mark 1.0</a>, and <a href=\"http://www.europeana.eu/portal/rights/rr-r.html\">All rights reserved</a>"
Diff:
@@ -1,2 +1,29 @@
-<a href="http://creativecommons.org/publicdomain/zero/1.0/">CC0 1.0 Universal</a>, <a href="http://creativecommons.org/publicdomain/mark/1.0/">Public Domain Mark 1.0</a>, and <a href="http://www.europeana.eu/portal/rights/rr-r.html">All rights reserved</a>
+ <div class="col-sm-9">
+ <table class="table">
+ <tr>
+ <th><span class="attribute-label h4">Description:</span></th>
+ <td><span itemprop="description">This links to <a href="http://example.com/"><span class="glyphicon glyphicon-new-window"></span> http://example.com/</a> What about that?</span></td>
+ </tr>
+ <tr>
+ <th><span class="attribute-label h4">Creator:</span></th>
+ <td><span itemprop="creator">Justin</span> and <span itemprop="creator">Joe</span></td>
+ </tr>
+ <tr>
+ <th><span class="attribute-label h4">Depositor:</span></th>
+ <td><a href="/users/atz@stanford-dot-edu">[email protected]</a></td>
+ </tr>
+ <tr>
+ <th><span class="attribute-label h4">Owner:</span></th>
+ <td><a href="/users/jcoyne@justincoyne-dot-com">[email protected]</a></td>
+ </tr>
+ <tr>
+ <th><span class="attribute-label h4">Date Uploaded:</span></th>
+ <td><span itemprop="datePublished">03/14/2013</span></td>
+ </tr>
+ <tr>
+ <th><span class="attribute-label h4">Rights:</span></th>
+ <td>http://creativecommons.org/publicdomain/zero/1.0/, http://creativecommons.org/publicdomain/mark/1.0/, and http://www.europeana.eu/portal/rights/rr-r.html</td>
+ </tr>
+ </table>
+ </div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment