Skip to content

Commit

Permalink
Added spreadsheet test.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanfox1985 committed Jul 17, 2015
1 parent d670c26 commit bfb1697
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
require 'support/active_record'
require 'action_controller'
require 'action_view'
require 'csv'
rescue LoadError
end

Expand Down
15 changes: 15 additions & 0 deletions spec/wice/lib/wice_grid_spreadsheet_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# encoding: utf-8
module Wice
describe Spreadsheet do
it 'should initialize' do
spread = Spreadsheet.new('hello', ';')

expect(spread.class).to eq(Wice::Spreadsheet)
end

it 'should add_row' do
spread = Spreadsheet.new('hello', ';')
spread << ["hello", "world!"]
end
end
end

0 comments on commit bfb1697

Please sign in to comment.