OpenCores
URL https://opencores.org/ocsvn/soc_maker/soc_maker/trunk

Subversion Repositories soc_maker

[/] [soc_maker/] [trunk/] [spec/] [spec_helper.rb] - Blame information for rev 3

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 3 feddischso
###############################################################
2
#
3
#  File:      spec_helper.rb
4
#
5
#  Author:    Christian Hättich
6
#
7
#  Project:   System-On-Chip Maker
8
#
9
#  Target:    Linux / Windows / Mac
10
#
11
#  Language:  ruby
12
#
13
#
14
###############################################################
15
#
16
#
17
#   Copyright (C) 2014  Christian Hättich  - feddischson [ at ] opencores.org
18
#
19
#   This program is free software: you can redistribute it and/or modify
20
#   it under the terms of the GNU General Public License as published by
21
#   the Free Software Foundation, either version 3 of the License, or
22
#   (at your option) any later version.
23
#
24
#   This program is distributed in the hope that it will be useful,
25
#   but WITHOUT ANY WARRANTY; without even the implied warranty of
26
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
27
#   GNU General Public License for more details.
28
#
29
#   You should have received a copy of the GNU General Public License
30
#   along with this program.  If not, see .
31
#
32
#
33
###############################################################
34
#
35
#   Description:
36
#     This little helper is included in all specifications.
37
#     We initialise the SOCMaker module
38
#        - without loading the library
39
#        - with logging to NULL
40
#     In addition, we enable warnings and colors.
41
#
42
#
43
###############################################################
44
require 'rubygems'
45
require 'rspec'
46
require 'simplecov'
47
SimpleCov.start
48
require 'soc_maker'
49
 
50
RSpec.configure do |config|
51
 
52
 
53
  SOCMaker::load(    skip_refresh: true,                       # no loading of a lib
54
                     logger_out: File.open(File::NULL, "w")    # no logger output
55
                     )
56
  config.warnings      = true
57
  config.color         = true
58
 
59
  # == Mock Framework
60
  #
61
  # RSpec uses it's own mocking framework by default. If you prefer to
62
  # use mocha, flexmock or RR, uncomment the appropriate line:
63
  #
64
  # config.mock_framework = :mocha
65
  # config.mock_framework = :flexmock
66
  # config.mock_framework = :rr
67
end
68
 
69
 
70
 
71
 
72
 
73
 
74
 
75
 
76
 
77
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.