Commit graph

9 commits

Author SHA1 Message Date
Markus Schirp
f633c8d894 Reduce default processor count to two under CI environments
Most CI implementations like travis / circleci run the builds
containerised. This can lead to the situartion where many more
processors are detected via /proc/cpuinfo and friends than are actually
usable through resource limits enforced by the containerization.
This can result in high resource consumption that might
result in abnormal build termination.

The default can easily be overriden in your CI setup.

* http://fabiokung.com/2014/03/13/memory-inside-linux-containers/
2014-08-11 17:52:53 +00:00
Markus Schirp
6df5811a87 Use RSpec as receiver for rspec DSL methods
* I dislike the global infection RSpec does. This commit is a first step
  to get a rid of it.
* Also remove the need for `require 'spec_helper` in each spec file with
  adjusting `.rspec`.
2014-08-10 21:04:07 +00:00
Markus Schirp
ce9d95f583 Add minimal specs for Mutant.zombify 2014-07-06 02:23:11 +00:00
Markus Schirp
a19f3b1691 Nuke UTF-8 encoding headers
* I do not use 1.9.3
* Also keeping them in each file increases mental overhead (true it *can* be autoamted)
* None of the files encodes NON ASCII chars.
* I do not expect it makes any difference, since nobody programmatically
  will consume strings generated by mutant under the assumption they are UTF-8 encoded.
* 1.9.3 Users have to deal with the encoding fuckup under ruby anyways.
2014-06-09 15:37:48 +00:00
Markus Schirp
f0af3bd301 Move isolation to namespaced module 2014-06-08 17:55:54 +00:00
Markus Schirp
0c5de6d01f Guard against simplecov at_exit infection 2014-05-11 18:12:52 +00:00
Markus Schirp
61b06e86d1 Add specs for Mutant.isolate 2014-05-11 16:01:53 +00:00
Markus Schirp
399f352328 Consistently use expect syntax 2014-02-02 22:49:33 +01:00
Markus Schirp
9edb375ef3 Use more modern spec layout
* This specs still have spec per method granularity
* But one file specs multiple methods
* Compatible with mutant spec selector
* Deduplicates boilerplate unit setup
2013-12-29 23:29:58 +01:00