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
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
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
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
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
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
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
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
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'
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
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
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
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
__
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
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
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
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
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
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
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
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
21 matches
Mail list logo