Only thing that springs to mind is that perhaps you haven't specified the
:method => :delete option on the link?
Julian.
On 25/03/2010, at 2:39 PM, Mauricio Aniche wrote:
> Hi,
>
> I am trying to test the destroy method in my rails 3 controller, but I always
> get an "no route matches {}" err
On 04/04/2010, at 7:32 AM, David Chelimsky wrote:
> On Sat, Apr 3, 2010 at 8:56 AM, Vojto Rinik wrote:
>> Hello RSpec users!
>> I have one abstract class and a few classes that inherit from that abstract
>> one.
>
> Ruby doesn't have abstract classes. You can have a base class that you
> don't
Sorry I meant send AND __send__
Julian.
On 04/04/2010, at 11:45 AM, Julian Leviston wrote:
>
> On 04/04/2010, at 7:32 AM, David Chelimsky wrote:
>
>> On Sat, Apr 3, 2010 at 8:56 AM, Vojto Rinik wrote:
>>> Hello RSpec users!
>>> I have one abstract class an
I'm not so sure "We all know good principles of OOP" actually.
I'd recommend www.vpri.com.au and looking into the work of Alan Kay. A lot of
his stuff can be found for free online, because it's decades old.
Julian
On 10/06/2010, at 7:23 PM, Joaquin Rivera Padron wrote:
> hi there,
> we all kno
Does this strike anyone else as odd?
Don't you think the test should actually be written IN to the code itself?
I guess I'm soft of stipulating a new language here, but perhaps Ruby is
flexible enough to enable this.
Surely as the private methods of a class change, the testing code HAS to
chan
ode on the
> example group.
>
> Still very interested
>
>
>> On Feb 1, 2011 7:28 PM, "Julian Leviston" wrote:
>>
>> Does this strike anyone else as odd?
>>
>> Don't you think the test should actually be written IN to the code i
On 02/02/2011, at 3:47 PM, Wincent Colaiuta wrote:
> El 02/02/2011, a las 02:28, Julian Leviston escribió:
>
>> Surely as the private methods of a class change, the testing code HAS to
>> change...
>
> That statement sets off all sorts of alarm bells for me.
>
>
Concurrency?
Julian
On 01/09/2011, at 8:06 AM, John Feminella wrote:
> We have about 2,000 specs in a Rails app that take roughly 80 seconds
> to run, and I'm trying to improve the performance of things a bit.
>
> While the profile mode has proven useful so far, it only shows the top
> ten slo
It'd be nice to have a bit of context for this issue.
It's most likely an issue with your model's validation...
Julian
On 25/01/2012, at 5:24 PM, Guyren G Howe wrote:
> My code that saves a record works fine in development or production, or from
> the console. I can take the code in my test a
1/2012, at 6:43 PM, Guyren G Howe wrote:
>
> On Jan 24, 2012, at 11:27 PM, Julian Leviston wrote:
>
>> On 25/01/2012, at 5:24 PM, Guyren G Howe wrote:
>>
>>> My code that saves a record works fine in development or production, or
>>> from the console. I
I always find it's very good to start simply.
Make the simplest spec you can imagine, then the next, and so on...
What is a spec? Some of this stuff might seem so obvious... for example... when
you start playing your game, you expect that it'll present you with
something... write a test for tha
This will probably help you.
http://fijiaaron.wordpress.com/2008/07/10/ruby-ci-options/
Julian
On 05/02/2012, at 7:29 PM, Ze T wrote:
> Hello,
> Anyone working in QA Test Automation with RSpec wouldn’t mind posting
> their testing framework or know where I can go to get more info on
> testing f
Nah I had this issue, too... use this
FactoryGirl do
assocation :location, etc. (look it up)
end
On 01/03/2012, at 4:19 PM, S Ahmed wrote:
> I'm trying to use factory for a test case, but the model I am creating via
> the factory depends on another model, how do you setup a factory like thi
On 05/04/2012, at 8:02 AM, Brad Symons wrote:
> I think you have a syntactical error on the line thats throwing the
> error, you state:
>
>>j.even?should be true #throws an error on j == 2, j == 4
>
> should this line not read as:
>
> j.even?.should be true
lol
j.even?.should be
What do you mean repeated? You mean you can't have an abbreviation with two of
the same letters?
Julian
On 18/04/2012, at 10:50 AM, Luciano Borges wrote:
> I'm studying Rspec and doing some model's tests.
>
> I have a table with a field which must have two characters, the field should
> not b
t; "ab")
item.should_be valid
item.save
duplicate_item = Item.new(:abbreviation => "ab")
duplicate_item.should_not be_valid
On 18/04/2012, at 11:11 AM, Luciano Borges wrote:
> 2012/4/17 Julian Leviston
> What do you mean repeated? You mean you can't have an abbreviat
Hi All,
I've got a bunch of tests written in cucumber, and they're all
lovely... this is rails testing i'm doing by the way and now I'm
coming to testing the javascript and AJAX parts of the app... and I've
decided to plug in selenium... my issue is, I'd like to select which
adapter to
It produces console output for me.
Julian.
On 28/04/2009, at 6:53 AM, James Byrne wrote:
If one invokes a Ruby script from a cucumber step definition and that
script contains "puts" statements then where does the output go? I
have
a script that when run from the command line displays "puts
Perhaps use background?
Julian.
On 28/04/2009, at 10:18 PM, doug livesey wrote:
Hi -- is it possible to set before and after blocks for individual
feature files?
I've tried putting them in step files, but they just get called
before everything, like they'd been declared in env.rb, which is
Hey Ben,
It'd be kinda cool if there was a sort of before and after for a
feature rather than each scenario. Is there?
(Rails context) We often need this. It'd be really helpful for things
like when we want to test about 15 things on a particular web page,
and they don't require fresh dat
o. It'd be nice if webrat could switch
between browser types per scenario or per feature. Sigh.
Blog: http://random8.zenunit.com/
Learn rails: http://sensei.zenunit.com/
On 29/04/2009, at 3:47 PM, Ben Mabey wrote:
Julian Leviston wrote:
Hey Ben,
It'd be kinda cool if there was
I have NO idea if this is relevant, but the way you extend worlds has
changed, I'm fairly sure.
Julian.
On 30/04/2009, at 10:15 PM, Lee Hambley wrote:
Hi All,
I'm new to the list, but a happy cucumber user with a few weeks
experience now... a bit of a shock this morning when someone
up
;
Then I should be on the superduper page
Given...
When...
Then...
Then the option to turn this feature off or on on the command line.
That'd be bloody brilliant. Okay so maybe I should go fork it and do
it :)
Julian.
On 03/05/2009, at 4:50 AM, Ben Mabey wrote:
Julian Levisto
You know what'd be awesome?
If Cucumber scenarios were referential.
I mean, wouldn't it be awesome if you could refer to them... so you
could build on them...
So in a login.feature I'd define:
Scenario: logging in
Given that a default user exists
And I am on the login page
When I fill in "u
Hehe.
It's funny I was after something just like this about a week ago...
Basically it'd be cool if there was an option to get cucumber to
explicitly say (on running) exactly which steps it was doing,
regardless of whether they were in a .feature file, or a _steps.rb file.
Julian.
On 07/05/2009, at 4:54 AM, aslak hellesoy wrote:
Folks,
I find it really hard to follow conversations that use top posting (http://en.wikipedia.org/wiki/Posting_style
).
If you have a [Cucumber] topic, please respond with inline comments.
And use plain text email - not html.
I find it
Hey all,
Has anyone else had any issues with trying to get APPLICATION code
debugging when using cucumber, selenium & webrat?
I can debug steps just fine, but debugs in application code get
skipped over under selenium for some reason.
Is this usual?
Julian.
__
Hi,
We're using Rails 2.3.2, and debugger doesn't seem to work in cucumber/
webrat running selenium mode. Has anyone else had this issue?
It seems to be skipping the debugger methods
Julian.
___
rspec-users mailing list
rspec-users@rubyforge.org
htt
On 07/05/2009, at 8:02 PM, Julian Leviston wrote:
Hey all,
Has anyone else had any issues with trying to get APPLICATION code
debugging when using cucumber, selenium & webrat?
I can debug steps just fine, but debugs in application code get
skipped over under selenium for some re
On 15/05/2009, at 12:48 AM, aslak hellesoy wrote:
http://github.com/aslakhellesoy/cucumber/blob/173506c4013a7d733c5b4924e7af3dcc49db2218/History.txt
Enjoy!
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/r
On 27/05/2009, at 9:33 AM, Gary Lin wrote:
Hi,
I wonder if there is any way to tell the test script to continue
even when encountering an assertion failure? The reason I am asking
this is because I have a test flow that can take a long time to run
and it would be very useful if I can per
because
"Peepcode.new"
doesn't receive the "awesome" message.
like it says...
Julian.
On 15/07/2009, at 12:59 PM, Zhenning Guan wrote:
class PeepCode
def awesome
"awesome"
end
end
describe PeepCode do
it "should fuck" do
PeepCode.new.should_receive(:awesome).and_return("awesome")
32 matches
Mail list logo