Displaying 13 results from an estimated 13 matches for "assert_nothing_raised".
2007 Oct 21
0
Taking a stab at a pure Ruby Dir.glob
...base(MyDir.glob(''foo/a.c?p'')))
assert_equal(%w/a.c b.c b.h bar/, base(MyDir.glob(''foo/???'')))
assert_equal(%w/a.c b.c b.h/, base(MyDir.glob(''foo/?.?'')))
end
def test_glob_basic
assert_respond_to(MyDir, :glob)
assert_nothing_raised{ MyDir.glob("*") }
end
def test_glob_valid_metacharacters
assert_nothing_raised{ MyDir.glob("**") }
assert_nothing_raised{ MyDir.glob("foo.*") }
assert_nothing_raised{ MyDir.glob("foo.?") }
assert_nothing_raised{ MyDir.glo...
2004 Jan 26
1
Re: win32-service ideas
>From: Shashank Date <sdate@everestkc.net>
>To: Daniel Berger <djberg96@hotmail.com>, phasis@nownuri.net
>CC: win32utils-devel@rubyforge.org
>Subject: Re: win32-service ideas
>Date: Sun, 25 Jan 2004 10:49:03 -0600
>
>Dan, Park,
>
> > Still nothing. The svc.log file never gets created. It''s definitely
> > choking on the StartService() call.
2004 Feb 01
2
test_services test case
...got hung up trying to resolve that
"RPC server is unavailable" error message that was popping up on some
systems. I couldn''t duplicate this on my XP Pro box, but it does show up on
my Win2k box.
Quick review - this is the test case from tc_service.rb
def test_services
assert_nothing_raised{ Service.services{ } }
assert_raises(NotImplementedError){ Service.services } # no non-block
a = []
Service.services{ |s| a.push(s) }
assert_kind_of(Struct::Win32Service,a.first)
end
I added some more information to the error messages, and it turns out that
the failure is...
2004 Mar 09
6
win32-mmap test suite
...$:.unshift Dir.pwd
end
require "test/unit"
require "win32/mmap"
include Win32
class TC_Mmap < Test::Unit::TestCase
def setup
@a = 1
end
def test_version
assert_equal("0.0.1",Mmap::VERSION,"Bad version")
end
def test_new
assert_nothing_raised{ Mmap.new("Foo") }
assert_nothing_raised{ Mmap.new("Foo",16*1024) }
assert_nothing_raised{ Mmap.new("Foo",16*1024,"test") }
assert_raises(ArgumentError){
Mmap.new("Foo",16*1024,"test",true,true,10,true) }
assert_ra...
2005 Feb 14
8
DONT_RESOLVE_DLL_REFERENCES info
For future reference, it looks like we should avoid
DONT_RESOLVE_DLL_REFERENCES in any extensions.
http://weblogs.asp.net/oldnewthing/archive/2005/02/14/372266.aspx
Regards,
Dan
2006 Apr 13
0
Globalize not with Rails 1.1.2
...res :globalize_countries, :globalize_languages,
:globalize_translations
def test_add_content_translations
NewsItem.delete_all
Globalize::Locale.set_base_language(''en-US'')
# create a row in the base language
Globalize::Locale.set(''en-US'')
assert_nothing_raised() do
assert_kind_of NewsItem, NewsItem.create!(:title => ''US Title'',
:excerpt => ''US
excerpt'',
:body => ''US body copy'')
end
a...
2005 Feb 28
3
test/unit error report for win32-service
...elete(TC_Win32Service) [tc_service.rb:164]:
Exception raised:
Class: <Win32::ServiceError>
Message: <"The specified service already exists.">
---Backtrace---
tc_service.rb:165:in `create_service''
tc_service.rb:165:in `test_create_delete''
tc_service.rb:164:in `assert_nothing_raised''
tc_service.rb:164:in `test_create_delete''
---------------
2) Error:
test_start_stop(TC_Win32Service):
Win32::ServiceError: The dependency service or group failed to start.
tc_service.rb:140:in `start''
tc_service.rb:140:in `test_start_stop''
3) Failu...
2004 Mar 01
0
RE: win32etc test failure
...1) Failure!!!
test_02_change_password(TC_Win32Etc) [test.rb:116]:
Exception raised:
Class: <Errno::ENOENT>
Message: <No such file or directory - user not found>
---Backtrace---
test.rb:115:in `change_password''
test.rb:115:in `test_02_change_password''
test.rb:114:in `assert_nothing_raised''
c:/ruby/lib/ruby/1.8/test/unit/assertions.rb:172:in `_wrap_assertion''
c:/ruby/lib/ruby/1.8/test/unit/assertions.rb:191:in
`assert_nothing_raised''
test.rb:116:in `test_02_change_password''
c:/ruby/lib/ruby/1.8/test/unit/testcase.rb:68:in `send''
c:/ruby/li...
2004 Mar 01
0
RE: win32etc test failure
...1) Failure!!!
test_02_change_password(TC_Win32Etc) [test.rb:116]:
Exception raised:
Class: <Errno::ENOENT>
Message: <No such file or directory - user not found>
---Backtrace---
test.rb:115:in `change_password''
test.rb:115:in `test_02_change_password''
test.rb:114:in `assert_nothing_raised''
c:/ruby/lib/ruby/1.8/test/unit/assertions.rb:172:in `_wrap_assertion''
c:/ruby/lib/ruby/1.8/test/unit/assertions.rb:191:in
`assert_nothing_raised''
test.rb:116:in `test_02_change_password''
c:/ruby/lib/ruby/1.8/test/unit/testcase.rb:68:in `send''
c:/ruby/li...
2004 Mar 01
0
RE: win32etc test failure
...1) Failure!!!
test_02_change_password(TC_Win32Etc) [test.rb:116]:
Exception raised:
Class: <Errno::ENOENT>
Message: <No such file or directory - user not found>
---Backtrace---
test.rb:115:in `change_password''
test.rb:115:in `test_02_change_password''
test.rb:114:in `assert_nothing_raised''
c:/ruby/lib/ruby/1.8/test/unit/assertions.rb:172:in `_wrap_assertion''
c:/ruby/lib/ruby/1.8/test/unit/assertions.rb:191:in
`assert_nothing_raised''
test.rb:116:in `test_02_change_password''
c:/ruby/lib/ruby/1.8/test/unit/testcase.rb:68:in `send''
c:/ruby/li...
2004 Mar 01
0
RE: win32etc test failure
...1) Failure!!!
test_02_change_password(TC_Win32Etc) [test.rb:116]:
Exception raised:
Class: <Errno::ENOENT>
Message: <No such file or directory - user not found>
---Backtrace---
test.rb:115:in `change_password''
test.rb:115:in `test_02_change_password''
test.rb:114:in `assert_nothing_raised''
c:/ruby/lib/ruby/1.8/test/unit/assertions.rb:172:in `_wrap_assertion''
c:/ruby/lib/ruby/1.8/test/unit/assertions.rb:191:in
`assert_nothing_raised''
test.rb:116:in `test_02_change_password''
c:/ruby/lib/ruby/1.8/test/unit/testcase.rb:68:in `send''
c:/ruby/li...
2009 Jul 08
1
[PATCH: host-browser replacement 0/3] replacement of host-browser on ovirt-server
The purpose of this patch is to replace the identify function in
host-browser.rb with a new script, host-register.rb.
host-register.rb is a qmf ruby console that interfaces with the newly
added matahari qmf agent on the ovirt node. While it stores node data
in the database with the same behavior as the original host-browser
implementation, it acquires the data using the amqp protocol (and
2009 Jul 10
2
[PATCH: server 0/3] Add host-register.rb (replaces host-browser.rb in part)
Removes node identification functionality from host-browser.rb and adds a new script,
host-register.rb, that takes over that functionality.
The chief difference is that host-browser used a simple TCP server setup to get data
from the node, while host-register uses the qpid bus to do so. Specifically, it
communicates with the matahari qmf agent added to the node in two related patchsets to
node