Cross Reference:
xref
: /
ontohub
/
test
/
unit
/
oops_request_test.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
oops_request_test.rb revision 35dd94a85a72f050db3ada08272cabce82643909
require
'test_helper'
class
OopsRequestTest
<
ActiveSupport
::
TestCase
context
'creating a oops request'
do
setup
do
Oops
::
Client.stubs
(:
execute_request
)
.
returns
\
File.read
(
"#{
Rails.root
}/
test
/
fixtures
/
oops
/
sunrealm.xml
"
)
@
version
=
FactoryGirl.create
:
ontology_version
@
request
= @
version.create
_request
# delete this line if you want tests running after this to fail
# (mocha 0.13.3)
Oops
::
Client.unstub
(:
execute_request
)
end
should
'have created a request with responses'
do
assert
@
request.responses.any
?
end
end
end