Displaying 3 results from an estimated 3 matches for "alt_separator".
2007 Oct 23
10
How is everyone structuring stories?
Bleeding-edge story-writers,
How are you structuring your specs?
I am working on a new project and tried this:
./lib
./blah
./spec
./blah
./stories
But it breaks autotest, so I moved stories parallel to lib and spec.
Also what about suffixes?
I have adopted "xyz_story_spec.rb", and "xyz.story" for the time
being, with the line
runner =
2007 Oct 31
12
autotest displays no output
Hey, I''m trying to configure autotest with rspec on cygwin but something is
going wrong.
I made a very simple testing environment with a user.rb and user_spec.rb
file. Rspec works fine, but autotest outputs nothing - it just stays here,
idle. ^C doesn''t display anything more.
I can see it''s running because I added require ''autotest/snarl'' in my
2007 Oct 04
0
Prototyping the Dir class
...issions = nil)
unless CreateDirectory(dirname, permissions)
raise ArgumentError, get_last_error
end
end
attr_reader :path
# Blend new and open into one method
def initialize(path)
@path = path + "\\*"
@path.tr!(File::SEPARATOR, File::ALT_SEPARATOR)
@fdata = 0.chr * 320 # 580 if wide
@handle = FindFirstFile(@path, @fdata)
if @handle == INVALID_HANDLE_VALUE
raise ArgumentError, get_last_error
end
if block_given?
begin
yield @handle
ensure
close...