Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include all tests in default rake run #283

Merged
merged 1 commit into from
Dec 21, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require 'coveralls/rake/task'
# Test unit
Rake::TestTask.new do |t|
t.libs << 'test'
t.test_files = FileList['test/test*.rb']
t.test_files = FileList['test/**/test*.rb']
t.verbose = true
end

Expand Down
3 changes: 1 addition & 2 deletions test/excelx/cell/test_base.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
require 'roo/excelx/cell/base'
require 'roo/link'
require 'test_helper'

class TestRooExcelxCellBase < Minitest::Test
def base
Expand Down
4 changes: 1 addition & 3 deletions test/excelx/cell/test_boolean.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
require 'roo/excelx/cell/base'
require 'roo/excelx/cell/boolean'
require 'roo/link'
require 'test_helper'

class TestRooExcelxCellNumber < Minitest::Test
def boolean
Expand Down
7 changes: 1 addition & 6 deletions test/excelx/cell/test_date.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
require 'date'
require 'roo/excelx/cell/base'
require 'roo/excelx/cell/datetime'
require 'roo/excelx/cell/date'
require 'roo/link'
require 'pry'
require 'test_helper'

class TestRooExcelxCellDate < Minitest::Test
def date_cell
Expand Down
5 changes: 1 addition & 4 deletions test/excelx/cell/test_datetime.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
require 'date'
require 'roo/excelx/cell/base'
require 'roo/excelx/cell/datetime'
require 'roo/link'
require 'test_helper'

class TestRooExcelxCellDateTime < Minitest::Test
def test_cell_value_is_datetime
Expand Down
3 changes: 1 addition & 2 deletions test/excelx/cell/test_empty.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
require 'roo/excelx/cell/base'
require 'roo/excelx/cell/empty'
require 'test_helper'

class TestRooExcelxCellEmpty < Minitest::Test
def empty
Expand Down
6 changes: 2 additions & 4 deletions test/excelx/cell/test_number.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
require 'roo/excelx/cell/base'
require 'roo/excelx/cell/number'
require 'roo/link'
require 'test_helper'

class TestRooExcelxCellNumber < Minitest::Test
def number
Expand Down Expand Up @@ -35,7 +33,7 @@ def test_formats_with_negative_numbers
end

def test_numbers_with_cell_errors
Excels::ERROR_VALUES.each do |error|
Roo::Excelx::ERROR_VALUES.each do |error|
cell = Roo::Excelx::Cell::Number.new error, nil, ['General'], nil, nil, nil
assert_equal error, cell.value
assert_equal error, cell.formatted_value
Expand Down
4 changes: 1 addition & 3 deletions test/excelx/cell/test_string.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
require 'roo/excelx/cell/base'
require 'roo/excelx/cell/string'
require 'roo/link'
require 'test_helper'

class TestRooExcelxCellString < Minitest::Test
def string
Expand Down
5 changes: 1 addition & 4 deletions test/excelx/cell/test_time.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
require 'roo/excelx/cell/base'
require 'roo/excelx/cell/datetime'
require 'roo/excelx/cell/time'
require 'roo/link'
require 'test_helper'

class TestRooExcelxCellTime < Minitest::Test
def time
Expand Down