Method: Assert::Config#initialize
- Defined in:
- lib/assert/config.rb
#initialize(settings = nil) ⇒ Config
Returns a new instance of Config.
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/assert/config.rb', line 21 def initialize(settings = nil) @suite = Assert::Suite.new(self) @view = Assert::View::DefaultView.new($stdout, self, @suite) @runner = Assert::Runner.new(self) @test_dir = "test" @test_helper = "helper.rb" @test_file_suffixes = ['_tests.rb', '_test.rb'] @runner_seed = begin; srand; srand % 0xFFFF; end.to_i @changed_proc = Assert::U.git_changed_proc @pp_proc = Assert::U.stdlib_pp_proc @use_diff_proc = Assert::U.default_use_diff_proc @run_diff_proc = Assert::U.syscmd_diff_proc # mode flags @capture_output = false @halt_on_fail = true @changed_only = false @pp_objects = false @debug = false self.apply(settings || {}) end |