Re: [rspec-users] regular expression hang ruby.exe

2013-05-08 Thread Ben Lovell
On 8 May 2013 08:22, Mattias A. wrote: > Hi, > > I use an regular expression to verify that my string in time_on_site is > correct. This works when the string match, but if it doesn't the test > get hanged. So I need to quit(ctrl+c) the script and also close ruby.exe > *32 in Task manager. Any id

Re: [rspec-users] Irelan NEEDS Ruby on Rails Developers

2012-12-13 Thread Ben Lovell
On 13 December 2012 15:57, Ken O'Reilly wrote: > There is now a HUGE demand for Ruby on Rails Developers in Ireland. > > More and more companies have Permanent Jobs opening and there are not > enough qualified developers to fill them. > > As a result, Ruby on Rails developers are of great value t

Re: [rspec-users] unexpected should_receive behaviour

2012-10-09 Thread Ben Lovell
On 9 October 2012 14:46, enrico stano wrote: > yes, it's CanCan fault! ;) > > any chance to check something like that (pseudo code) ? > > User.should_receive(:find).with("1").called_by(User.authorize!) > User.should_receive(:find).with("1").called_by(controller) > > just to check exactly what's h

Re: [rspec-users] unexpected should_receive behaviour

2012-10-09 Thread Ben Lovell
ico > > CanCan is finding your user record somewhere in the stack so the expectation you have set is being met somewhere. Regards, Ben > 2012/10/9 Ben Lovell : > > Hi, > > > > On 9 October 2012 13:04, enrico stano wrote: > >> > >> Hi

Re: [rspec-users] unexpected should_receive behaviour

2012-10-09 Thread Ben Lovell
Hi, On 9 October 2012 13:04, enrico stano wrote: > Hi, > > surely I'm missing something... but what!? > > in my spec I've > > User.should_receive(:find).with("1").and_return(@user) > > and in my controller > > User.find(params[:id]) > > green light... correct... > > but if I change my controller

Re: [rspec-users] i cannot seem to use at_least

2012-09-26 Thread Ben Lovell
Hi On 26 September 2012 16:16, deepak kannan wrote: > hi, > > Problem is that i want to test chained method calls. Where the method > chain is optional > But if the method chain is called then certain assertions apply on the > method chain itself > > The object may or may not call a method. > Bu

Re: [rspec-users] Can't access https://www.relishapp.com/rspec from Chrome

2012-04-07 Thread Ben Lovell
On 7 April 2012 16:30, Rodrigo Rosenfeld Rosas wrote: > It seems it has an invalid certificate. > __**_ > Fine here. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinf

Re: [rspec-users] Comparing files

2010-12-10 Thread Ben Lovell
Cyclic redundancy check (crc) Sent from my iPhone On 10 Dec 2010, at 15:56, Matt Wynne wrote: > Hello folks, > > I'm writing some tests for file upload code. The files are binary, images > mostly. I'm futzing around a bit, trying to figure out how to assert that the > uploaded file is the sa

Re: [rspec-users] Rack::Test + cookies + rspec

2010-04-16 Thread Ben Lovell
On 16 April 2010 15:59, Ben Lovell wrote: > Try: > > post 'whatever', {}, {'rack.session' => {:something=>'value'}} > > To put things through the session with rack test/sinatra. > > Sent from my iPhone > > Hmm, hold up, that isn'

Re: [rspec-users] Rack::Test + cookies + rspec

2010-04-16 Thread Ben Lovell
Try: post 'whatever', {}, {'rack.session' => {:something=>'value'}} To put things through the session with rack test/sinatra. Sent from my iPhone On 16 Apr 2010, at 15:20, David Chelimsky wrote: > On Apr 16, 2010, at 8:49 AM, Nicholas Wieland wrote: > >> On Apr 16, 2010, at 3:12 PM, David C

Re: [rspec-users] Cucumber generator

2010-01-12 Thread Ben Lovell
Try gem install cucumber-rails In a recent release the generators were split from the main project. Sent from my iPhone On 13 Jan 2010, at 06:38, Onno van der Straaten > wrote: Hi, I'm new to RSpec and Cucumber and I'm following the RSpec book. I have cucumber gem installed but when I use

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

Re: [rspec-users] controller code doesn't seem to be called within rspec test

2009-10-21 Thread Ben Lovell
2009/10/21 Alexander Seidl > Alexander Seidl wrote: > > i call current_user in the index-method, but the test fails and says: > > "# expected :current_user with > > (any args) once, but received it 0 times" > > > > Why? > > Try putting line 7 before line 6. Cheers, Ben __

Re: [rspec-users] [Cucumber][Webrat] Using LinkLocator in cucumber step definitions

2009-06-23 Thread Ben Lovell
On Tue, Jun 23, 2009 at 5:00 PM, mBread wrote: > I am wanting to specify "Then I should not see a "New item" link" in a > cucumber scenario. Is it possible to use Webrat::Locators.find_link (as used > in click_link) in a cucumber step definition? Or is there some reason why I > shouldn't assert t

Re: [rspec-users] Disabling cucumber for autotest

2009-05-28 Thread Ben Lovell
On Thu, May 28, 2009 at 6:05 PM, Rick DeNatale wrote: > > Now you don't happen to be using the recently released autotest-mac > gem are you? It does automatically run scenarios, and I'd like to be > able to control that as well. > > Rick DeNatale That's peculiar. I'm not seeing the same behaviou

Re: [rspec-users] [Cucumber] Fail a scenario from After or AfterStep

2009-05-15 Thread Ben Lovell
On Fri, May 15, 2009 at 9:25 AM, aslak hellesoy wrote: > > I'm not so sure I like the idea of AfterStep - smells like a > workaround for something that belongs elsewhere. Can't your have > selenium-rc (or a helper method you create around it) raise those > exceptions? > > Given /bla/ do > # don't

Re: [rspec-users] Rails HTML error page in the console.

2009-05-13 Thread Ben Lovell
On Wed, May 13, 2009 at 8:42 AM, Matt Wynne wrote: > I'm still bugged by the fact that when I get an exception during a feature > run (e.g. Couldn't find partial) then what I see in the console is all the > HTML to report that error in a browser. > > I have had a few ideas for this bubbling around

Re: [rspec-users] Plugin to generate text logs using cucumber.

2009-05-01 Thread Ben Lovell
On Fri, May 1, 2009 at 7:22 PM, Anil Gollaa wrote: > Hi, > I was able to run the scenarios using rake features in cucmber, > All the respective results are displayed in colour in std output. > > is there any plugin using which i can capture these results(that are > generated at run time). > Pleas

Re: [rspec-users] Before and After blocks for individual feature files?

2009-05-01 Thread Ben Lovell
On Fri, May 1, 2009 at 12:33 PM, Matt Wynne wrote: > > Have you looked at celerity? I'm not sure if webrat has an adapter for it > yet, but it's a 'headless' browser which drives a lot faster than selenium. > Some people on this list are getting a lot of joy out of it. +1 to celerity. You need

Re: [rspec-users] Partitioning Specs

2009-04-30 Thread Ben Lovell
Nick > > On Thu, Apr 30, 2009 at 10:02 AM, Ben Lovell wrote: > >> >> >> On Thu, Apr 30, 2009 at 3:00 PM, Nicholas Van Weerdenburg < >> vanwe...@gmail.com> wrote: >> >>> Hi, >>> I installed Restful Authentication and it placed a lot of spe

Re: [rspec-users] Partitioning Specs

2009-04-30 Thread Ben Lovell
On Thu, Apr 30, 2009 at 3:00 PM, Nicholas Van Weerdenburg < vanwe...@gmail.com> wrote: > Hi, > I installed Restful Authentication and it placed a lot of specs and > features in cucumber and rspec directories. > > Is there a way frameworks can partition there tests so that "rake spec" > doesn't run