Browse files

Cleaned up test a bit.

  • Loading branch information...
1 parent 8866c29 commit 6a165bdb3d5a9cd760de0b924dffcf66ecf80c35 @commondream committed Sep 24, 2012
Showing with 1 addition and 76 deletions.
  1. +0 −75 assets/treehouse.svg
  2. +1 −1 test/invoice_test.rb
View
75 assets/treehouse.svg
@@ -1,75 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Generator: Adobe Illustrator 16.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
-<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
- width="733px" height="161px" viewBox="0 0 733 161" enable-background="new 0 0 733 161" xml:space="preserve">
-<g>
- <path fill="#33363B" d="M214.169,118.416c-14.02,0-20.35-9.61-20.35-22.272V51.486c0-4.41,3.278-7.914,7.575-7.914
- c4.183,0,7.574,3.504,7.574,7.914v7.688h14.132c3.731,0,7.01,2.827,7.01,6.784c0,3.731-3.279,6.557-7.01,6.557h-14.132v23.29
- c0,5.427,2.375,8.366,7.349,8.366c2.487,0,4.975-0.679,7.01-1.244c5.766-1.356,9.384,2.262,9.384,6.444
- c0,2.487-1.244,5.088-4.749,6.671C224.005,117.851,218.465,118.416,214.169,118.416z"/>
- <path fill="#33363B" d="M277.967,64.94c0,3.052-2.374,7.123-7.122,7.123c-2.601,0-5.088-1.131-8.479-1.018
- c-3.731,0.113-5.879,2.148-5.879,7.349v31.995c0,4.296-3.279,7.688-7.574,7.688c-4.184,0-7.575-3.392-7.575-7.688V75.567
- c0-11.758,6.896-19.333,19.898-19.333c3.731,0,7.461,0.339,9.723,0.904C275.594,58.383,277.967,61.209,277.967,64.94z"/>
- <path fill="#33363B" d="M334.759,84.951c0,4.409-2.261,7.575-7.8,7.575h-30.074v1.13c0,7.123,5.427,10.967,13.002,10.967
- c4.07,0,8.253-1.018,12.097-2.487c5.992-2.262,9.949,1.809,9.949,5.992c0,2.148-0.792,4.522-3.844,6.331
- c-4.184,2.487-11.419,3.957-18.655,3.957c-15.602,0-26.116-9.836-27.247-23.968c-0.339-4.409-0.226-10.627,0-14.132
- c1.357-14.698,11.871-24.081,26.681-24.081c15.376,0,25.89,10.288,25.89,26.229V84.951z M318.931,82.238
- c0.792,0,1.244-0.452,1.244-1.357c0.339-6.896-3.957-11.532-11.306-11.532c-8.027,0-11.984,5.087-11.984,12.889H318.931z"/>
- <path fill="#33363B" d="M396.637,84.951c0,4.409-2.261,7.575-7.801,7.575h-30.073v1.13c0,7.123,5.427,10.967,13.002,10.967
- c4.069,0,8.252-1.018,12.096-2.487c5.992-2.262,9.949,1.809,9.949,5.992c0,2.148-0.791,4.522-3.843,6.331
- c-4.185,2.487-11.42,3.957-18.655,3.957c-15.602,0-26.116-9.836-27.247-23.968c-0.339-4.409-0.227-10.627,0-14.132
- c1.356-14.698,11.871-24.081,26.681-24.081c15.377,0,25.89,10.288,25.89,26.229V84.951z M380.809,82.238
- c0.792,0,1.244-0.452,1.244-1.357c0.34-6.896-3.958-11.532-11.306-11.532c-8.027,0-11.984,5.087-11.984,12.889H380.809z"/>
- <path fill="#33363B" d="M422.789,60.644c2.488-2.261,8.254-4.409,14.246-4.409c14.357,0,22.837,8.592,22.837,24.759v29.056
- c0,4.521-3.166,8.026-7.688,8.026c-4.184,0-7.462-3.505-7.462-8.026V81.786c0-6.897-3.957-10.741-10.176-10.741
- c-4.747,0-9.384,2.148-11.758,4.749v34.483c0,4.295-3.166,7.8-7.461,7.8c-4.184,0-7.688-3.505-7.688-7.8V44.138
- c0-4.41,3.278-7.801,7.574-7.801c4.183,0,7.574,3.392,7.574,7.801V60.644z"/>
- <path fill="#33363B" d="M498.234,118.416c-14.811,0-26.003-9.497-27.133-22.95c-0.34-4.522-0.34-11.645,0-16.167
- c1.13-13.567,12.322-23.063,27.133-23.063c14.924,0,25.891,9.497,27.021,23.063c0.339,4.522,0.339,11.532,0,16.054
- C524.125,108.919,513.158,118.416,498.234,118.416z M510.219,81.672c-0.339-6.443-4.861-10.966-11.984-10.966
- c-7.122,0-11.531,4.522-12.097,10.966c-0.227,3.054-0.227,8.367,0,11.307c0.565,6.444,4.975,10.966,12.097,10.966
- c7.123,0,11.532-4.521,11.984-10.966C510.444,90.039,510.444,84.726,510.219,81.672z"/>
- <path fill="#33363B" d="M536.482,64.601c0-4.522,2.714-8.027,7.462-8.027c4.297,0,7.688,3.504,7.688,8.027V93.43
- c0,6.784,4.409,10.514,10.853,10.514c4.975,0,8.706-1.469,11.081-2.939v-36.63c0-4.296,3.165-7.801,7.573-7.801
- c4.184,0,7.575,3.504,7.575,7.801v42.282c0,2.602-0.678,4.07-2.713,5.314c-3.505,2.487-11.759,6.444-23.854,6.444
- c-16.28,0-25.665-8.819-25.665-24.76V64.601z"/>
- <path fill="#33363B" d="M646.41,98.744c0,12.663-10.515,19.672-23.629,19.672c-10.628,0-17.411-3.053-21.594-6.558
- c-2.714-2.262-3.505-6.557-1.356-9.383c2.261-3.053,6.104-3.731,9.836-1.357c3.504,2.261,8.14,3.73,13.454,3.73
- c5.879,0,8.592-2.147,8.592-5.201c0-2.487-1.809-4.182-6.558-5.312c-4.069-0.905-3.957-0.792-8.366-1.923
- c-9.27-2.373-16.507-7.574-16.507-17.297c0-12.21,9.837-18.88,23.064-18.88c7.122,0,14.472,1.809,18.429,5.087
- c3.278,2.713,3.052,7.349,0.678,10.062c-2.261,2.487-6.105,2.826-9.836,0.905c-2.94-1.47-6.896-2.487-9.836-2.487
- c-5.652,0-8.027,2.147-8.027,4.861c0,2.375,1.696,3.957,6.784,5.088l8.026,1.809C640.87,84.273,646.41,89.812,646.41,98.744z"/>
- <path fill="#33363B" d="M707.158,84.951c0,4.409-2.262,7.575-7.801,7.575h-30.074v1.13c0,7.123,5.427,10.967,13.003,10.967
- c4.069,0,8.252-1.018,12.097-2.487c5.991-2.262,9.948,1.809,9.948,5.992c0,2.148-0.792,4.522-3.844,6.331
- c-4.183,2.487-11.418,3.957-18.654,3.957c-15.602,0-26.116-9.836-27.246-23.968c-0.339-4.409-0.227-10.627,0-14.132
- c1.356-14.698,11.87-24.081,26.682-24.081c15.374,0,25.89,10.288,25.89,26.229V84.951z M691.33,82.238
- c0.791,0,1.243-0.452,1.243-1.357c0.34-6.896-3.957-11.532-11.305-11.532c-8.027,0-11.985,5.087-11.985,12.889H691.33z"/>
-</g>
-<g>
- <path fill="#33363B" d="M717.895,65.502c0,0.735-0.561,1.295-1.295,1.295c-0.771,0-1.331-0.596-1.331-1.295V59.48h-1.96
- c-0.666,0-1.226-0.56-1.226-1.226c0-0.735,0.56-1.26,1.226-1.26h6.477c0.665,0,1.226,0.525,1.226,1.26
- c0,0.666-0.561,1.226-1.226,1.226h-1.891V65.502z M725.807,58.43l1.119,4.901l1.156-4.901c0.209-0.98,1.05-1.576,1.926-1.576
- c1.015,0,1.82,0.596,2.029,1.821l1.016,6.441c0.141,0.771-0.14,1.541-0.91,1.681c-0.91,0.175-1.505-0.351-1.61-1.121l-0.699-5.426
- l-1.261,5.076c-0.246,0.875-0.771,1.471-1.646,1.471c-0.805,0-1.364-0.525-1.645-1.471l-1.261-5.111l-0.699,5.461
- c-0.105,0.77-0.7,1.295-1.611,1.121c-0.77-0.14-1.05-0.91-0.909-1.681l1.016-6.407c0.209-1.26,1.05-1.855,2.029-1.855
- C724.757,56.854,725.596,57.45,725.807,58.43z"/>
-</g>
-<path fill="#92B253" d="M130.769,29.379c-5.334-3.017-13.855,1.835-19.029,10.835l-9.368,16.297
- c-3.424,6.775-2.954,14.842,1.387,21.069l0.274,0.393c4.34,6.227,10.162,11.983,12.088,14.037c1.132,1.207,1.998,2.697,2.475,4.402
- c1.582,5.658-1.722,11.527-7.379,13.11c-5.658,1.582-11.527-1.72-13.11-7.379c-0.398-1.42-0.486-2.853-0.308-4.229
- c0.304-2.338-0.446-6.145-3.797-9.883c-3.352-3.738-10.203,3.322-12.417,10.583l-0.103,0.334c-2.215,7.26-3.613,13.596-3.195,14.205
- c0.249,0.363,0.481,0.745,0.693,1.144c3.108,5.849,0.887,13.107-4.96,16.216c-5.849,3.108-13.108,0.889-16.217-4.959
- c-3.109-5.849-0.887-13.108,4.96-16.218c0.262-0.139,0.528-0.268,0.795-0.385c0.447-0.197,1.714-3.249,2.813-6.854
- c1.1-3.605,1.992-6.527,1.992-6.527c0.117-0.384,0.219-0.764,0.312-1.14l5.917-21.129l-6.33,12.991
- c-0.751-2.467-1.99-2.554-4.706-0.611c-1.639,1.172-4.348,3.48-5.671,4.426c-2.484,1.778-4.562,5.231-5.663,7.347
- c-0.647,1.246-1.554,2.381-2.713,3.32c-4.531,3.678-11.185,2.984-14.862-1.547s-2.984-11.185,1.547-14.861
- c1.329-1.079,2.839-1.781,4.404-2.121c2.662-0.579,11.715-6.109,17.17-10.012c0.976-0.698,1.796-1.359,2.462-1.972l14.564-11.062
- l-12.684,6.854c0,0-1.291-0.13-2.873,0.045c-4.643,0.516-9.424,1.169-10.328,2.319c-0.534,0.679-1.17,1.295-1.906,1.825
- c-4.234,3.049-10.138,2.089-13.188-2.145s-2.09-10.139,2.144-13.188c1.747-1.258,3.777-1.833,5.773-1.777
- c3.396,0.094,12.329,1.906,19.803,0.581l1.92-0.339c7.475-1.325,16.424-7.832,19.989-14.533c0,0,3.491-6.133,7.798-13.698
- c4.307-7.565,3.988-15.852-0.709-18.508l-8.508-4.811c-4.292-2.427-11.321-2.431-15.616-0.009L7.811,34.85
- C3.514,37.272,0,43.289,0,48.22v64.559c0,4.932,3.514,10.947,7.811,13.37l58.601,33.036c4.295,2.424,11.324,2.418,15.616-0.008
- l58.4-33.02c4.293-2.428,7.806-8.447,7.806-13.379V48.22c0-4.931-3.513-10.953-7.806-13.379
- C140.429,34.841,136.104,32.396,130.769,29.379z"/>
-</svg>
View
2 test/invoice_test.rb
@@ -156,7 +156,7 @@ def setup
end
test "rendering with an svg logo" do
- Payday::Config.default.invoice_logo = { :filename => "assets/treehouse.svg", :size => "183.25x40.25" }
+ Payday::Config.default.invoice_logo = { :filename => "assets/tiger.svg", :size => "100x100" }
i = Invoice.new(:tax_rate => 0.1, :notes => "These are some crazy awesome notes!", :invoice_number => 12,
:due_at => Date.civil(2011, 1, 22), :paid_at => Date.civil(2012, 2, 22),
:bill_to => "Alan Johnson\n101 This Way\nSomewhere, SC 22222", :ship_to => "Frank Johnson\n101 That Way\nOther, SC 22229")

0 comments on commit 6a165bd

Please sign in to comment.