Rake TestTask problem with t.options

I am trying to understand some rake stuff better …

I have a test that works fine if I do:
“ruby test/integration/tcp_test.rb -n test_job_create”

but if I try to do it in a rake file like below, it errors out. It
seems the t.options is the problem because I can get it to work
without that:

/usr/bin/ruby -I"lib" “/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/
rake_test_loader.rb” “test/integration/tcp_test.rb” -n test_job_create

/home/me/.gem/ruby/1.8/gems/activesupport-2.3.5/lib/active_support/
dependencies.rb:147:in load_without_new_constant_marking': no such file to load -- test_job_create (MissingSourceFile) from /home/LGuild/.gem/ruby/1.8/gems/activesupport-2.3.5/lib/ active_support/dependencies.rb:147:inload’
from /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/
rake_test_loader.rb:4
from /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/
rake_test_loader.rb:4:in `each’
from /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/
rake_test_loader.rb:4
rake aborted!
Command failed with status (1): [/usr/bin/ruby -I"lib" "/usr/lib/ruby/
gems/…]


My rake task:

require ‘rake’
require ‘rake/testtask’
require ‘rake/rdoctask’

namespace :tcp_test do

Rake::TestTask.new(‘job_create’) do |t|

t.loader = :testrb

t.ruby_opts = [’-n test_job_create’]

t.options = ‘-n test_job_create’
t.verbose = true
t.pattern = ‘test/integration/tcp_test.rb’
t.name = ‘job_create’
end

end