|
From: <caw...@us...> - 2007-08-07 13:58:19
|
Revision: 2928
http://rubyeclipse.svn.sourceforge.net/rubyeclipse/?rev=2928&view=rev
Author: cawilliams
Date: 2007-08-07 06:58:18 -0700 (Tue, 07 Aug 2007)
Log Message:
-----------
add test and fix for #5448 - Error when opening authenticated_generator.rb file (restful_athentication plugin)
Modified Paths:
--------------
trunk/org.rubypeople.rdt.ui.tests/src/org/rubypeople/rdt/internal/ui/text/TC_RubyPartitionScanner.java
Modified: trunk/org.rubypeople.rdt.ui.tests/src/org/rubypeople/rdt/internal/ui/text/TC_RubyPartitionScanner.java
===================================================================
--- trunk/org.rubypeople.rdt.ui.tests/src/org/rubypeople/rdt/internal/ui/text/TC_RubyPartitionScanner.java 2007-08-07 13:58:13 UTC (rev 2927)
+++ trunk/org.rubypeople.rdt.ui.tests/src/org/rubypeople/rdt/internal/ui/text/TC_RubyPartitionScanner.java 2007-08-07 13:58:18 UTC (rev 2928)
@@ -363,5 +363,20 @@
assertContentType(RubyPartitionScanner.RUBY_STRING, code, 79); // case'}'
assertContentType(RubyPartitionScanner.RUBY_STRING, code, 112); // EN'D'
}
+
+ public void testBug5448() {
+ String code = "m.class_collisions controller_class_path, \"#{controller_class_name}Controller\", # Sessions Controller\r\n" +
+ " \"#{controller_class_name}Helper\"";
+ assertContentType(RubyPartitionScanner.RUBY_DEFAULT, code, 1);
+ assertContentType(RubyPartitionScanner.RUBY_DEFAULT, code, 40);
+ assertContentType(RubyPartitionScanner.RUBY_STRING, code, 48);
+ assertContentType(RubyPartitionScanner.RUBY_STRING, code, 50);
+ assertContentType(RubyPartitionScanner.RUBY_DEFAULT, code, 51);
+ assertContentType(RubyPartitionScanner.RUBY_DEFAULT, code, 71);
+ assertContentType(RubyPartitionScanner.RUBY_STRING, code, 72);
+ assertContentType(RubyPartitionScanner.RUBY_STRING, code, 83);
+ assertContentType(RubyPartitionScanner.RUBY_DEFAULT, code, 84);
+ assertContentType(RubyPartitionScanner.RUBY_SINGLE_LINE_COMMENT, code, 86);
+ }
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|