Fischer, Daniel
2008-Apr-04 00:17 UTC
[rspec-users] Autotest RSpec Not Running on Model Save''s?
If I save my model while autotest is running, autotest doesn''t run the model''s specs, all I get in my window is /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -S script/spec -O spec/spec.opts However if I go to the spec and save that, it''ll automatically run that spec... it just won''t do it from the model itself. If I remember correctly, autotest used to automatically map the model to the spec, didn''t it? Or at least automatically run all specs everytime you save? Anyway, any help would be appreciated, thanks! -Daniel -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rspec-users/attachments/20080403/f8fff78b/attachment.html
Willem Källman
2008-Apr-06 19:36 UTC
[rspec-users] Autotest RSpec Not Running on Model Save''s?
Same problem here, but I guess it has nothing to do with RSpec or the fact that you are testing a model. Instead, Autotest seems to misbehave. Say we have a project directory with these contents: lib/script.rb spec/spec_script.rb spec/spec.opts The following is what Autotest does on my system: After running ''$ autotest'' and changing the contents of spec_script.rb, Autotest invokes /<path_to_ruby>/ruby -S /<path_to_rspec>/rspec-1.1.3/bin/spec -O spec/spec.opts spec/spec_script.rb Which is perfectly fine. However, when I edit and save script.rb, Autotest will call ''spec'' without specifying a file: /<path_to_ruby>/ruby -S /<path_to_rspec>/rspec-1.1.3/bin/spec -O Just as you described it. I''d really love to hear some ideas on how to fix this. Thank you! -- Posted via http://www.ruby-forum.com/.
Fischer, Daniel
2008-Apr-09 01:20 UTC
[rspec-users] Autotest RSpec Not Running on Model Save''s?
Yea a fix would be amazing. This is knda annoying because now I have to press ctrl-c or something to run that spec. On Sun, Apr 6, 2008 at 12:36 PM, Willem K?llman <lists at ruby-forum.com> wrote:> Same problem here, but I guess it has nothing to do with RSpec or the > fact that you are testing a model. Instead, Autotest seems to misbehave. > > Say we have a project directory with these contents: > lib/script.rb > spec/spec_script.rb > spec/spec.opts > > The following is what Autotest does on my system: > After running ''$ autotest'' > and changing the contents of spec_script.rb, Autotest invokes > /<path_to_ruby>/ruby -S /<path_to_rspec>/rspec-1.1.3/bin/spec -O > spec/spec.opts spec/spec_script.rb > Which is perfectly fine. > However, when I edit and save script.rb, Autotest will call ''spec'' > without specifying a file: /<path_to_ruby>/ruby -S > /<path_to_rspec>/rspec-1.1.3/bin/spec -O > Just as you described it. > > I''d really love to hear some ideas on how to fix this. Thank you! > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rspec-users/attachments/20080408/bd6004ab/attachment.html