search for: spec_command

Displaying 12 results from an estimated 12 matches for "spec_command".

2007 Mar 28
14
Autotest
Is anyone using rspec with autotest? Scott
2006 Dec 21
1
heres how to get color output in rspec_autotest with rspec 0.7.5
In case anyone else is trying to make this work, here is what I did (Before 0.7.4 I had patched the regex in zentest redgreen, but that is not used any more) To use directly, it is very simple. In rspec_autotest/lib/ rspec_autotest.rb, add a -c to the spec_command in the initializer function: @spec_command = "spec -c --diff unified" This won''t help however if you want to use rails_spec_server. To do that I patched rspec_0.7.5 to add an option to force the adding of colour codes (I did it this way because I assumed the check for...
2006 Dec 21
7
rspec_autotest no longer re-runs tests with rspec 0.7.5
Has anyone else encountered this problem? What I mean is, rspec_autotest runs all specs, then waits. When you change a spec, it reruns that spec. However, if that spec now passes, it should run the whole suite again, so you can see the next one to work on. It no longer does this. This renders it somewhat useless. Does anyone have autotest working with rspec 0.7.5, or does anyone have any
2007 May 01
6
rspec and autotest
If you want to use rspec-0.9.2 with autotest (ZenTest-3.5.2), you''ll want to read this blog: http://blog.davidchelimsky.net/articles/2007/05/01/rspec-0-9-1-and-autotest-zentest-3-5-2 Enjoy! David
2008 Oct 10
5
Solution for autospec not working
...and found that spec is no longer being run by ruby. I monkey-patched Autotest::Rspec in my .autotest file so that spec is again executed (using code taken from version 1.1.4). autospec is now working for me. Applicable code from my .autotest file: http://pastie.org/289183 github shows that the spec_command was removed on 7/12, with the comment: "removed spec_command from autotest/rspec (ruby works just fine)". See: http://github.com/dchelimsky/rspec/commit/1aca72d0c5b5dc92c1ac9a4b94ccb8f6961067d2 Does autospec work for anyone? Does this issue only affect those of us using Windows? -- Den...
2007 Aug 14
0
Using rspec in a non-rails project w/ autotest
...on externals, or simply frozen) 2. Add autotest/discover.rb: Autotest.add_discovery do "myproj" end 3. Add autotest/myproj.rb: require File.dirname(__FILE__) + "/../vendor/plugins/rspec/rspec/lib/ autotest/rspec" class Autotest::Myproj < Autotest::Rspec alias :old_spec_commands :spec_commands def spec_commands [File.dirname(__FILE__) + "/../vendor/plugins/rspec/rspec/bin/ spec"] + old_spec_commands end end Autotest should now run fine with trunk rspec (it also means you don''t need the rspec gem installed). Happy hacking, Scott
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 =
2006 Dec 25
1
Issues with 0.7.5
I installed 0.7.5 and the corresponding Rails plugin. Now it seems that the rake command is: rake spec:autotest I immediately ran into several problems: 1. rspec_autotest.rb line 30 has curly quotes and makes Ruby choke 2. Same line, rails_spec is spelled solid, when it should have the underscore But fixing these didn''t get me back going. Now I have to have a rails_spec_server
2007 Nov 20
5
Autotest rspec issues
...a couple of issues: 1. Running ''autotest'' inititally yields a command not found for "spec --diff unified etc etc". This seems to be an old issue but I can fix it by creating a "~/.autotest" file and attaching a hook to autotest initialize to explicity set the spec_command to script/spec. Fine. 2. Regardless of #1, restarting autotest once loaded makes it crap out with an initialize error, complaining about wrong arguments (0 for 1) or somesuch - the exact stack trace and error I can post when home again tonight. 3. I can live with the first two, but autotest isn&...
2007 May 25
2
RSpec-1.0.3
The RSpec Development Team is pleased to announce the release of RSpec-1.0.3. == Changes This is the compatibility release! * Compatible with autotest!!!! (As of ZenTest 3.6.0 - see below) * Compatible with edge rails (as of r6825). * Compatible with jruby (since release 1.0.1) See http://rspec.rubyforge.org/changes.html for more detail. == About RSpec RSpec is a framework which provides
2007 Apr 13
21
ZenTest autotest now handles RSpec, yay!
...hat''s a great news. Josh also shared with me a quick hack to make autotest work with only the RSpec plugin installed. Add the following into your ~/.autotest file http://pastie.caboo.se/53535 Autotest.add_hook :initialize do |autotest| if autotest.is_a? RspecRailsAutotest autotest.spec_command = ''script/spec --options spec/spec.opts'' if File.exist? ''script/spec'' end end -Matt -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rspec-users/attachments/20070412/33a787f2/attachment.html
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