Re: [rspec-users] Problem running examples with spec_server

2007-12-13 Thread Michael Klishin
What error do you get? On 12 дек. 2007, at 19:39, David Nolan wrote: > Hello, > Running RSpec without DRB works fine. > However, "spec -X" runs without error but provides no output at all, > even though the DRB spec_server seems to be fine. > Has anyone got some suggestions as to why and how to

Re: [rspec-users] What to test for views?

2007-12-09 Thread Michael Klishin
I first started to check things existence in the resulting page but quickly decided to only check for permission-affected links, forms, etc. Though if your applications are RESTful it would be good idea to check http method form uses and hidden fields that Rails uses to piggyback PUT and DE

[rspec-users] spec.opts default --load-by and observers

2007-11-17 Thread Michael Klishin
When specing observers I usually put them into models directory under / spec. Then, when specs are run observer class can't be found unless I remove --load-by mtime from spec.opts. My question is what's the Big Idea behind loading specs in that order by default? Shouldn't default spec.opts co

Re: [rspec-users] howto regressions on environment.rb in Rails projects

2007-08-26 Thread Michael Klishin
Seems that the assertion itself is just obvious lambda { ... }.should_not raise_error ... But given the fact environment.rb is loaded well before examples are run, is it worth the effort it may take to spec out Rails bootstrap process? Sorry if I do not get your question. Scott Taylor wrote: >

Re: [rspec-users] ror app with advanced rspec?

2007-08-26 Thread Michael Klishin
RSpec itself is a nice example of pretty large open source project that uses RSpec for testing ;) It's a general problem in TDD/BDD worlds: what to test and how to keep it maintainable. I'd recommend reading mockobjects.com. Priit Tamboom wrote: > Hi! > > Can anybody link to some ror based pro

Re: [rspec-users] undefined method `mock_model' for [RSpec example]:#

2007-08-20 Thread Michael Klishin
+1 for those On 19/08/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > I'm thinking about other ways to be explicit about this (besides the > verbose ":behaviour_type => :view". What if we added methods like: > > describe_model > describe_view > describe_controller > describe_helper -- MK __