Re: [rspec-users] spec failing to run specs when spec.opts is present on 1.2.9

2009-10-29 Thread Ashley Moran
On 29 Oct 2009, at 08:28, Paul Carey wrote: If I create a new merb app (1.0.12) and model and then run rake spec, all is well. However, if I copy its spec_helper into my own app, the problems listed above appear. So I think the source of the issue lies somewhere else. Have you upgraded the o

Re: [rspec-users] at_exit in spec file?

2009-10-29 Thread Ashley Moran
On 29 Oct 2009, at 13:58, Tom Stuart wrote: On 29 Oct 2009, at 13:46, Stephen Eley wrote: Everyone's busy programming. >8-> I imagine the book helps a bit, too. The book pretty much replaces the slides I did for my mocking presentation, and may do the same for the rest of my consulting

Re: [rspec-users] cyclomatic complexity

2009-10-29 Thread David Chelimsky
On Oct 29, 2009, at 12:21 PM, Elza Morelli wrote: Hi, Someone can help me? I am using Rspec to create tests and Rcov to have some code coverage information, however my client would like to have some information on cyclomatic complexity. Can I use any option of Rcov to obtain it or should I

Re: [rspec-users] cyclomatic complexity

2009-10-29 Thread Ben Lovell
2009/10/29 Elza Morelli > Hi, Someone can help me? > > I am using Rspec to create tests and Rcov to have some code coverage > information, however my client would like to have some information on > cyclomatic > complexity. Can I use any option of Rcov to obtain it or should I use > another tool

[rspec-users] cyclomatic complexity

2009-10-29 Thread Elza Morelli
Hi, Someone can help me? I am using Rspec to create tests and Rcov to have some code coverage information, however my client would like to have some information on cyclomatic complexity. Can I use any option of Rcov to obtain it or should I use another tool ? How can I do this? Thanks --

Re: [rspec-users] HOWTO: Background tasks during test (ugly)

2009-10-29 Thread David Chelimsky
On Oct 29, 2009, at 11:17 AM, Student wrote: forever.sh: while true ; do sleep 5 ; done tc_forks.rb 2.times do fork {`nohup sh forever.sh &`} end describe "We can do tests in the air" do it "Here is the first test" do 1.should not_raise 1.should_not raise_error end end spec tc_

Re: [rspec-users] HOWTO: Background tasks during test (ugly)

2009-10-29 Thread Student
forever.sh: while true ; do sleep 5 ; done tc_forks.rb 2.times do fork {`nohup sh forever.sh &`} end describe "We can do tests in the air" do it "Here is the first test" do 1.should not_raise end end spec tc_forks_spec.rb nohup: redirecting stderr to stdout nohup: redirecting stderr

Re: [rspec-users] [BDD] View specs and cucumber -- duplication of effort?

2009-10-29 Thread David Chelimsky
On Oct 29, 2009, at 10:09 AM, Stephen Eley wrote: On Thu, Oct 29, 2009 at 10:19 AM, David Chelimsky > wrote: Everything in between falls along a spectrum, and it's up to you to find the sweet spot, which _will_ vary from team to team, project to project, and even view to view. Here's a

Re: [rspec-users] [BDD] View specs and cucumber -- duplication of effort?

2009-10-29 Thread nruth
Steve, I'm trying to persuade myself, or rather be persuaded by someone who knows better. Since writing this I got an update of the RSpec book and noted that chapter 23 has been rewritten to discuss this. That's great, as the version I had really didn't cover it at all. Thumbs up to David et al fo

Re: [rspec-users] [BDD] View specs and cucumber -- duplication of effort?

2009-10-29 Thread Stephen Eley
On Thu, Oct 29, 2009 at 10:19 AM, David Chelimsky wrote: > > Everything in between falls along a spectrum, and it's up to you to find the > sweet spot, which _will_ vary from team to team, project to project, and > even view to view. Here's a discussion on another forum in which nearly the exact

Re: [rspec-users] HOWTO: Background tasks during test (ugly)

2009-10-29 Thread Ashley Moran
On Oct 29, 2009, at 12:28 pm, Student wrote: No autoscript here. I don't doubt that there are wrappers that might handle it, I was going for a solution in a bare rspec environment. Still not sure I understand the problem. Can you explain what you mean by "getting them running without causin

Re: [rspec-users] [BDD] View specs and cucumber -- duplication of effort?

2009-10-29 Thread David Chelimsky
On Oct 28, 2009, at 10:19 PM, Ben Mabey wrote: nruth wrote: Hi Guys I'm going to put the cat amongst the pigeons here in the hope of some clarity falling out of the sky on me. My question is this: In a world with Cucumber what is the value of view specs? In the community (railscamp, for examp

Re: [rspec-users] at_exit in spec file?

2009-10-29 Thread Tom Stuart
On 29 Oct 2009, at 13:46, Stephen Eley wrote: Everyone's busy programming. >8-> I imagine the book helps a bit, too. Cheers, -Tom ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] at_exit in spec file?

2009-10-29 Thread Stephen Eley
On Thu, Oct 29, 2009 at 6:18 AM, Ashley Moran wrote: > > But, is it me, or is rspec-users quieter than it used to be?  I'm sure when > I was learning the volume of questions was much higher.  Are there fewer > people using RSpec?  Or is it just more stable and well-documented now? >  (Maybe I'm ju

Re: [rspec-users] problem with should_receive in controller spec

2009-10-29 Thread David Chelimsky
On Oct 29, 2009, at 5:56 AM, Amit Kulkarni wrote: I am trying to write controller spec but i am getting some problem. Following is the controller code: def create @bb_post = @feature.posts.new( params[ :bb_post ] ) if @bb_post.save flash[ :notice ] = 'Blog post was successfully crea

Re: [rspec-users] HOWTO: Background tasks during test (ugly)

2009-10-29 Thread Student
No autoscript here. I don't doubt that there are wrappers that might handle it, I was going for a solution in a bare rspec environment. datadir was missed in the transposition--it should have been data [:dir]. Nathan On Oct 29, 5:22 am, Ashley Moran wrote: > On Oct 29, 2009, at 3:09 am, Stud

[rspec-users] problem with should_receive in controller spec

2009-10-29 Thread Amit Kulkarni
I am trying to write controller spec but i am getting some problem. Following is the controller code: def create @bb_post = @feature.posts.new( params[ :bb_post ] ) if @bb_post.save flash[ :notice ] = 'Blog post was successfully created.' format.html { redirect_to( blog_bb_p

Re: [rspec-users] at_exit in spec file?

2009-10-29 Thread aslak hellesoy
On Wed, Oct 28, 2009 at 4:49 PM, David Chelimsky wrote: > On Oct 28, 2009, at 10:41 AM, Student wrote: > >> I need to perform some work (shutdown mysql servers & delete their >> data directories) at the end of my tests.  Naturally, I would like to >> use at_exit.  HOWEVER, when I do, the spec file

Re: [rspec-users] HOWTO: Background tasks during test (ugly)

2009-10-29 Thread Ashley Moran
On Oct 29, 2009, at 3:09 am, Student wrote: I am writing a script that reads connection information from a config file, and based, on what it finds, connects to multiple mysql servers and performs tasks. To test this script, I need to set up test servers, but getting them running without causi

Re: [rspec-users] at_exit in spec file?

2009-10-29 Thread Ashley Moran
On Oct 28, 2009, at 9:42 pm, David Chelimsky wrote: Sorry about that :( And thanks, Ashley, for righting (and writing) my wrong. No probs. I'm trying to answer the straightforward technical questions, at least non-Rails ones. To people who have clearly tried to help themselves first of

Re: [rspec-users] spec failing to run specs when spec.opts is present on 1.2.9

2009-10-29 Thread Paul Carey
> Hi Paul > > I use Merb extensively.  Can you post your spec_helper?  I may be able to > help... > > Ashley Hi Ashley Many thanks for your offer. If I create a new merb app (1.0.12) and model and then run rake spec, all is well. However, if I copy its spec_helper into my own app, the problems