Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8394423
spec_helper.rb
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
592 B
Subscribers
None
spec_helper.rb
View Options
require
'pathname'
dir
=
Pathname
.
new
(
__FILE__
)
.
parent
$LOAD_PATH
.
unshift
(
dir
,
dir
+
'lib'
,
dir
+
'../lib'
)
require
'mocha'
require
'puppet'
gem
'rspec'
,
'=1.2.9'
require
'spec/autorun'
module
Helpers
def
fixture
(
name
,
ext
=
'.txt'
)
File
.
read
(
File
.
join
(
File
.
dirname
(
__FILE__
),
'fixtures'
,
name
.
to_s
+
ext
))
end
end
Spec
::
Runner
.
configure
do
|
config
|
config
.
mock_with
:mocha
config
.
include
(
Helpers
)
end
# We need this because the RAL uses 'should' as a method. This
# allows us the same behaviour but with a different method name.
class
Object
alias
:must
:should
end
File Metadata
Details
Attached
Mime Type
text/x-ruby
Expires
Wed, Jun 4, 7:24 PM (4 d, 19 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3307098
Attached To
R119 Support for source control repositories
Event Timeline
Log In to Comment