Java Virtal Machine.net

[ News ] rss

September 18, 2009

Poll Result: Java Is Most Preeminent in Europe. Some voters in this past week's java.net poll questioned whether the question could be answered, but the result showed that a plurality of voters considered Europe to be region where Java has the greatest market share among competing technologi...

More »

September 17, 2009

Sun Collaborates with Software Freedom International to Connect More than 25,000 Developers and Students in 30 Countries for Software Freedom Day 2009. Building on its commitment to empower developers and students across the globe, Sun Microsystems, Inc. (NASDAQ: JAVA) is sponsoring more than 300 community style events in more than 30 countries for Software Freedom Day (SFD) on September 19, 2009. W...

More »

November/2009
SunMonTueWedThuFriSat
1234567
891011121314
151617181920 21
22232425262728
2930     

[ Archives News
for 'Developers' ]

home > news > developers > ruby screenshot of the week #29: test navigator for rspec

Ruby Screenshot of the Week #29: Test Navigator for RSpec

Let's start with the screenshot: The thing to notice here is that we have a number of RSpec do-blocks in this file. Until now, only classes, methods, fields and attributes were showing up in the navigator. But in the latest daily builds, rspec do blocks like these are shown in the navigator (bottom left corner), along with the string summary (if any) such that you can quickly navigate between them. Placing the caret in one of these blocks will highlight the corresponding item in the navigator. Adding a better navigator outline for spec files has been on the TODO list for a while, but apparently in the latest Rails builds regular tests are also switching away from using test methods to using test blocks (according to issue 137925, thanks James). So it seemed high time to do something about this. The other thing to notice is that these blocks are also folded, so you can use Command-Shift-+ and - to collapse/expand all blocks quickly. By the way, another old issue was fixed in NetBeans recently, which makes it easy to configure filetypes. In the past, if you wanted say .mab files to get Ruby treatment in the IDE, you'd file an issue and I'd modify the Ruby mimetype resolver to include it. The list is already pretty long -- .rb, .rake, .rxml, .rjs, .rbw, .rbx, .mab, .builder, .gemspec, and so on. Now you can add any extra types you want yourself, using the Options | Miscellaneous | File Associations. Add any extension...


Date: June, 24 2008
Url: http://blogs.sun.com/tor/entry/ruby_screenshot_of_the_week27


Others News

Leave a Reply

Name (required)
Mail (will not be published) (required)
Website
You don't see letters?

Enter the code shown above (required)


Related

©2002-2008Java-Virtual-Machine.net :Java Archive: :Solve Crosswords de fr ru pt es : JVM: :Free PC Download: :Micrometer: