SciRuby / daru

Data Analysis in RUby
BSD 2-Clause "Simplified" License
1.04k stars 139 forks source link

Enhance specs style #317

Open zverok opened 7 years ago

zverok commented 7 years ago

Our specs had grown "organically", and many of them use outdated style of testing things (all bootstrap & several checks is made inside single example, tons of hard-to-read large objects created on the fly, instance variables are used instead of let and so on).

What should be done in this ticket is:

As the full solution for the ticket will touch all spec/**/*.rb files, it is advised to make several PRs (one PR per one spec file, or one PR per one problem solution).

You can rely on my (@zverok) advices and reviews while working on this ticket.

dshvimer commented 7 years ago

I am interested in tackling this. I will be working on it this week.

dshvimer commented 7 years ago

I think that since this a fairly large task. More than one person can contribute at any given time. I will list the files that I am working on as I begin to work on them and others should do the same.

zverok commented 7 years ago

Yes, please list your progress & PRs just in this issue.

dshvimer commented 7 years ago
File Status PR
spec/io/sql_data_source_spec.rb Merged link
spec/io/io_spec.rb In Progress
v0dro commented 7 years ago

@dshvimer any update on this? Are you going to work on io_spec?