Re: [rspec-users] Parallelize RSpec

2011-04-28 Thread Adam Esterline
Both https://github.com/test-load-balancer and https://github.com/grosser/parallel_tests seem more complicated than needed.They both require other moving parts (database; other server).It seems now with ruby 1.9 and jruby a simpler solution (maybe harder to code) would be to use a queue and

[rspec-users] rspec contribution at railsconf?

2011-04-28 Thread Jed Schneider
Hi, I was curious if there was any interest in organizing a 'bugmash', if you will, of any outstanding rspec features or issues during railsconf. (maybe there is something planned that i missed?) I'm not sure how much there is to be done, but if there is interest, and in particular if there is so

Re: [rspec-users] Mock/stub ActiveMerchant? (or other cascading/multiple inheritance situation)

2011-04-28 Thread Pat Maddox
On Apr 28, 2011, at 4:37 PM, David Kahn wrote: > I am a bit new to mocking. I am trying to stub the > ActiveMerchant::Billing::PaypalGateway#authorize method but not clear how to > do it. This is my code and spec. > > This is the pertinent code: > > module Payment > def gateway > Active

[rspec-users] Mock/stub ActiveMerchant? (or other cascading/multiple inheritance situation)

2011-04-28 Thread David Kahn
I am a bit new to mocking. I am trying to stub the ActiveMerchant::Billing::PaypalGateway#authorize method but not clear how to do it. This is my code and spec. This is the pertinent code: module Payment def gateway ActiveMerchant::Billing::PaypalGateway.new( ... ) end def au

Re: [rspec-users] Parallelize RSpec

2011-04-28 Thread Sidu Ponnappa
You can also take a look at https://github.com/test-load-balancer Best, Sidu. http://c42.in http://about.me/ponnappa On 29 April 2011 01:24, Adam Esterline wrote: > I am looking for some advice on the best way to parallelize a large > set of browser-based regression tests written in rspec.    Ju

Re: [rspec-users] Parallelize RSpec

2011-04-28 Thread Rodrigo Rosenfeld Rosas
Have you already tried Parallel Tests? https://github.com/grosser/parallel_tests It helped a lot for me... Hope it helps, Rodrigo. Em 28-04-2011 16:54, Adam Esterline escreveu: I am looking for some advice on the best way to parallelize a large set of browser-based regression tests written i

Re: [rspec-users] difference between validate and validate_on_create

2011-04-28 Thread Justin Ko
On Thu, Apr 28, 2011 at 2:06 PM, Sergio Ruiz wrote: > i just ran into a problem with some test, and i am not exactly sure why, > but the difference happened when i changed my model validation from: > > validate :custom_validation > > to: > > validate_on_create :custom_validation > > can someone g

Re: [rspec-users] difference between validate and validate_on_create

2011-04-28 Thread Sergio Ruiz
thanks, nick.. i looks like i need to hunt around a bit more as to what was causing my problem.. thanks! -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] difference between validate and validate_on_create

2011-04-28 Thread Rick DeNatale
On Thu, Apr 28, 2011 at 3:06 PM, Sergio Ruiz wrote: > i just ran into a problem with some test, and i am not exactly sure why, > but the difference happened when i changed my model validation from: > > validate :custom_validation > > to: > > validate_on_create :custom_validation > > can someone gi

[rspec-users] Parallelize RSpec

2011-04-28 Thread Adam Esterline
I am looking for some advice on the best way to parallelize a large set of browser-based regression tests written in rspec.Just as a note; we are running these specs with RSpec 2.5 on JRuby 1.6.1. Our current set of specs takes about 4 hours to run when it is not parallelized.We have imple

[rspec-users] difference between validate and validate_on_create

2011-04-28 Thread Sergio Ruiz
i just ran into a problem with some test, and i am not exactly sure why, but the difference happened when i changed my model validation from: validate :custom_validation to: validate_on_create :custom_validation can someone give me any ideas on where in the chain the validation takes place? th

[rspec-users] How can I execute rspec directly from ruby code?

2011-04-28 Thread Pablo Cantero
Hi Can I execute rspec directly from ruby code? I would like to do it similar I can do using Test::Unit Test::Unit::UI::Console::TestRunner.run(MySuite.new(MyTestCase)) I was looking on internet how to execute it, but I wasn't found it Is it possible? Best, Pablo Cantero -- Posted via http

Re: [rspec-users] before(:each) <- need some clarification

2011-04-28 Thread Matthew Van Horn
On Apr 27, 2011, at 3:55 PM, Sergio Ruiz wrote: > i am setting up a few objects that are interrelated for use in an rspec > test.. > > something like: > > describe Dimension do > > before(:each) do > text = "string here" > end > > it "should puts string" do > puts text > end > > end > > when

Re: [rspec-users] before(:each) <- need some clarification

2011-04-28 Thread Sergio Ruiz
wow! thanks so much for the great info! this is exactly what i needed! thanks again! -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users