Re: [rspec-users] Rspec Rails high overhead

2009-01-04 Thread Nick Hoffman
On 2009-01-03, at 23:17, Mark Wilden wrote: On Sat, Jan 3, 2009 at 6:58 PM, Reza Primardiansyah > wrote: I found out that running RSpec on Rails takes too much overhead. It takes more than 16s per run although the specs only take less than 6s, like seen below. The killer is the time it tak

[rspec-users] rack app to browse specs

2009-01-04 Thread Joaquin Rivera Padron
hello there, Sometimes I find easier to browse my specs directly on the browser to have an overall idea of the logic. To do it I have put up a simple rack app to: - browse the contents of /spec directory on rails root - run each spec and view the html formatted output (it does spec FILE -f h) It

Re: [rspec-users] [ANN] RSpec-1.1.12 - RC1

2009-01-04 Thread David Chelimsky
On Sun, Jan 4, 2009 at 10:41 AM, David Chelimsky wrote: > Hey all, > > I'm getting ready to do a 1.1.12 release of rspec and rspec-rails. > Given the history of release-related compatibility problems, I offer > you release candidate gems, which you can acquire thusly: > > [sudo] gem install dcheli

Re: [rspec-users] Rspec Rails high overhead

2009-01-04 Thread aslak hellesoy
On Sun, Jan 4, 2009 at 3:58 AM, Reza Primardiansyah < reza.primardians...@gmail.com> wrote: > Greetings, > I found out that running RSpec on Rails takes too much overhead. It takes > more than 16s per run although the specs only take less than 6s, like seen > below. That means almost 11s overhead.

Re: [rspec-users] [rspec-devel] [ANN] Cucumber 0.1.14

2009-01-04 Thread David Chelimsky
Rock on! Thanks for this this. It's going to make getting rspec ruby 1.9 compliant much easier (since now I'll be able to run rspec's features!). Cheers, David On Sun, Jan 4, 2009 at 12:50 PM, aslak hellesoy wrote: > Now with Ruby 1.9 support! > > Full changelog: > http://github.com/aslakhe

[rspec-users] [ANN] Cucumber 0.1.14

2009-01-04 Thread aslak hellesoy
Now with Ruby 1.9 support! Full changelog: http://github.com/aslakhellesoy/cucumber/tree/v0.1.14/History.txt The gem will be available in an hour or two. Aslak ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo

[rspec-users] [ANN] RSpec-1.1.12 - RC1

2009-01-04 Thread David Chelimsky
Hey all, I'm getting ready to do a 1.1.12 release of rspec and rspec-rails. Given the history of release-related compatibility problems, I offer you release candidate gems, which you can acquire thusly: [sudo] gem install dchelimsky-rspec -v 1.1.11.5 --source http://gems.github.com [sudo] gem ins

Re: [rspec-users] Cucumber model expectations fail to find newly created users

2009-01-04 Thread Hubert Lepicki
The step definition is actually: Then /^should exist exactly "(.*)" users$/ do |cnt| User.count.should == cnt.to_i end but that doesn't change anything, please help! -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@r

[rspec-users] Cucumber model expectations fail to find newly created users

2009-01-04 Thread Hubert Lepicki
Hi guys, I have strange problem with getting model expectations to work with Cucumber. My setup is that I use Cucumber + Webrat (Selenium backend). Story I test is registering user on site. Cucumber runs story perfectly fine, and I see it fills in form, sends it, I even see proper "You have succe

Re: [rspec-users] Cucumber model expectations fail to find newly created users

2009-01-04 Thread Ben Mabey
On 1/4/09 12:13 PM, Hubert Lepicki wrote: Hi guys, I have strange problem with getting model expectations to work with Cucumber. My setup is that I use Cucumber + Webrat (Selenium backend). My guess is that you are using Selenium in conjuction with rails transactional fixtures turned on.

Re: [rspec-users] Cucumber model expectations fail to find newly created users

2009-01-04 Thread Hubert Lepicki
Ben Mabey wrote: > My guess is that you are using Selenium in conjuction with rails > transactional fixtures turned on. In your env.rb file do you have the > following? > Cucumber::Rails.use_transactional_fixtures That was a perfect guess! Thank you, Ben, a lot! I have updated Troubleshooting pa

Re: [rspec-users] Rspec Rails high overhead

2009-01-04 Thread Mark Wilden
On Sun, Jan 4, 2009 at 6:57 AM, Nick Hoffman wrote: > > Mark, would you mind explicitly telling us/me how you get the ``spec'' > command to run within DRb, please? > I use spec rather than script/spec to run specs. script/spec runs my specs twice. I also use rake spec:server:start rather than sc

Re: [rspec-users] Rspec Rails high overhead

2009-01-04 Thread David Chelimsky
On Sun, Jan 4, 2009 at 2:52 PM, Mark Wilden wrote: > On Sun, Jan 4, 2009 at 6:57 AM, Nick Hoffman wrote: >> >> Mark, would you mind explicitly telling us/me how you get the ``spec'' >> command to run within DRb, please? > > I use spec rather than script/spec to run specs. script/spec runs my spec

Re: [rspec-users] Rspec Rails high overhead

2009-01-04 Thread Mark Wilden
On Sun, Jan 4, 2009 at 1:03 PM, David Chelimsky wrote: > > I use spec rather than script/spec to run specs. script/spec runs my > specs > > twice. > > That's fixed, so I'm guessing you've got a mixture of old and new > generated files. > I did re-gen with .16, but still got that result. > The p

Re: [rspec-users] Cucumber speed tips

2009-01-04 Thread Ben Mabey
On 1/3/09 8:36 PM, Luke Melia wrote: On Jan 3, 2009, at 9:12 PM, Ben Mabey wrote: The downside with this approach is that it only works with the rails webrat adapter. One solution which I have been meaning to do is to create a UsersSessionManager. The manager would be responsible for loggin

Re: [rspec-users] [rspec-devel] [ANN] RSpec-1.1.12 - RC1

2009-01-04 Thread aslak hellesoy
On Sun, Jan 4, 2009 at 7:22 PM, David Chelimsky wrote: > On Sun, Jan 4, 2009 at 10:41 AM, David Chelimsky > wrote: > > Hey all, > > > > I'm getting ready to do a 1.1.12 release of rspec and rspec-rails. > > Given the history of release-related compatibility problems, I offer > > you release candi

[rspec-users] Voted for Cucumber logo yet?

2009-01-04 Thread aslak hellesoy
If not - please do! http://cukes.info Announcing winner tomorrow. No rallying friends please. Just vote for the best one. Aslak ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users