Fix spec failures caused by removing target=
diff --git a/spec/core/test_spec.rb b/spec/core/test_spec.rb
index 7166c96..17c2ac4 100644
--- a/spec/core/test_spec.rb
+++ b/spec/core/test_spec.rb
@@ -548,7 +548,8 @@
   end
 
   it 'should compile to target/test/<code>' do
-    define 'foo', :target=>'targeted' do
+    define 'foo' do
+      layout[:target] = _('targeted')
       test.compile.using(:javac)
       test.compile.target.should eql(file('targeted/test/classes'))
     end
@@ -600,7 +601,10 @@
 
   it 'should copy to the resources target directory' do
     write 'src/test/resources/config.xml', '</xml>'
-    define('foo', :target=>'targeted').test.invoke
+    define('foo') do
+      layout[:target] = _('targeted')
+    end.test.invoke
+    
     file('targeted/test/resources/config.xml').should contain('</xml>')
   end