check_writer 0.1.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
Binary file
Binary file
data/spec/check_spec.rb CHANGED
@@ -76,6 +76,29 @@ describe "CheckWriter::Check" do
76
76
 
77
77
  assert_data_matches_file_content('with_stubs', @data)
78
78
  end
79
+
80
+ end
81
+
82
+ context "with stub table data" do
83
+ before(:each) do
84
+ @stub_table_data = [
85
+ ['Name', 'Acct No', 'Invoice', 'Date', 'Notes', 'Amount'], # header
86
+ ['Box Company LLC', '89982376', '1978612', '1/1/2000', 'For boxes delivered', '$1,000.00'],
87
+ ['Box Company LLC', '89982376', '1978612', '1/1/2000', 'For boxes delivered', '$1,000.00']
88
+ ]
89
+ @check.stub_table_data = @stub_table_data
90
+ @check.stub_table_options = {:row_colors => ['ff0000', 'ffffff']}
91
+ @check.with_stubs = true
92
+ @data = @check.to_pdf
93
+ end
94
+
95
+ it "generates a pdf with stub table data" do
96
+ # Use this line to re-write the PDF we test against
97
+ # write_content_to_file('with_stub_table_data', @data)
98
+
99
+ #assert_data_matches_file_content('with_stub_table_data', @data)
100
+ end
101
+
79
102
  end
80
103
 
81
104
  context "#to_prawn" do
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: check_writer
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 1
9
- - 1
10
- version: 0.1.1
8
+ - 2
9
+ - 0
10
+ version: 0.2.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ryan Winograd
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-05-12 00:00:00 Z
18
+ date: 2012-05-17 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  version_requirements: &id001 !ruby/object:Gem::Requirement
@@ -213,6 +213,9 @@ files:
213
213
  - spec/assets/two_in_one-0.12.0.pdf
214
214
  - spec/assets/two_in_one-0.6.1.pdf
215
215
  - spec/assets/two_in_one-0.6.3.pdf
216
+ - spec/assets/with_stub_table_data-0.12.0.pdf
217
+ - spec/assets/with_stub_table_data-0.6.1.pdf
218
+ - spec/assets/with_stub_table_data-0.6.3.pdf
216
219
  - spec/assets/with_stubs-0.12.0.pdf
217
220
  - spec/assets/with_stubs-0.6.1.pdf
218
221
  - spec/assets/with_stubs-0.6.3.pdf