sure thing:
http://pastie.org/595363
2009/8/26 David Chelimsky :
> On Tue, Aug 25, 2009 at 6:19 PM, Oliver
> Barnes wrote:
>> Hello,
>>
>> I'm struggling with this controller spec for a few hours now
>>
>> http://pastie.org/594775
>>
>> which
does that shed any light?
2009/8/26 Oliver Barnes :
> sure thing:
>
> http://pastie.org/595363
>
> 2009/8/26 David Chelimsky :
>> On Tue, Aug 25, 2009 at 6:19 PM, Oliver
>> Barnes wrote:
>>> Hello,
>>>
>>> I'm struggling with this co
x27;t understand,
> stub!() appears to be returning a Proc instead of a mock proxy object.
>
> On Thu, Aug 27, 2009 at 9:35 AM, Oliver
> Barnes wrote:
>> does that shed any light?
>>
>> 2009/8/26 Oliver Barnes :
>>> sure thing:
>>>
>>> http://
/Library/Ruby/Gems/1.8/gems/rspec-1.2.8/lib/spec/runner/command_line.rb:9:in
`run'
/Library/Ruby/Gems/1.8/gems/rspec-1.2.8/bin/spec:4:
/usr/bin/spec:19:in `load'
/usr/bin/spec:19:
2009/8/27 Oliver Barnes :
> i guess it must be something wrong with my setup then? i've been
>
it works better.
>
> Is there ANY chance that Image or one of it's superclasses has defined
> a stub! method which would override the one in Spec::Mocks::Methods ?
>
> On Fri, Aug 28, 2009 at 6:02 PM, Oliver
> Barnes wrote:
>> sorry to bother again, but no luck even a
n the
> documentation
>
> http://github.com/jeremymcanally/stump
>
> Regards
>
> On Wed, Aug 26, 2009 at 1:19 AM, Oliver Barnes
> wrote:
>>
>> Hello,
>>
>> I'm struggling with this controller spec for a few hours now
>>
>> http://pastie.org/5
8, 2009 at 12:02 PM, Oliver Barnes
> wrote:
>> thanks! had given up on this already. changing to the new syntax
>>
>> Image.stub!(:find, :return => @image)
>
> Not sure where you got this syntax from, but it doesn't do anything.
> Options are:
>
> Image.st
Hello,
I've just installed cucumber 0.1.99, and it looks like the Portuguese
step keywords aren't recognized for some reason. I'm following this
example up on github:
http://github.com/aslakhellesoy/cucumber/blob/ae9bf75d586cda232310721f62ecab91fc2336c0/examples/i18n/pt/features/adicao.feature
W
sorry to bump this up, I am the only one experiencing this problem?
anybody else running cucumber in other languages?
2009/2/14 Oliver Barnes :
> Hello,
>
> I've just installed cucumber 0.1.99, and it looks like the Portuguese
> step keywords aren't recognized for some reas
(it responds "0 Scenarios", not "0 Features", btw)
2009/2/18 Oliver Barnes :
> Valeu David! muito bom poder falar com o mestre em português :)
>
> Mas eu tentei com estes, tanto com passos em inglês como em português:
>
> http://pastie.org/392962
>
aslakhellesoy/cucumber/blob/e1afbf1908fdb3867d857478847403abeedd91d7/lib/cucumber/languages.yml
>
> HTH,
> David
>
>>
>> 2009/2/14 Oliver Barnes :
>>> Hello,
>>>
>>> I've just installed cucumber 0.1.99, and it looks like the Portuguese
>>> step keywords
+1
I'm also looking for examples... I've seen several
authentication-related ones, but very few examples of features that
users would actually care a lot about, and that would help in learning
outside-in development...
2009/3/11 Andrew Premdas :
> You could have a look at fbrp on github, which has
I'm looking for feature examples for web apps, I imagine Balint is as well?
2009/3/11 Matt Wynne :
>
> On 11 Mar 2009, at 19:46, Zach Dennis wrote:
>
>> On Wed, Mar 11, 2009 at 3:03 PM, Balint Erdi wrote:
>>>
>>> Hi,
>>>
>>> I was looking for some "real-world" cucumber features (mainly on github)
gotten stuck in writing features with my client, without patterns to
draw from.
2009/3/13 aslak hellesoy :
>
>
> On Fri, Mar 13, 2009 at 3:22 PM, Oliver Barnes
> wrote:
>>
>> I'm looking for feature examples for web apps, I imagine Balint is as
>> well?
>
>
Hello,
I'm trying to get Given in Portuguese to have two translations, "Dado"
and "Dada" (variations on gender), so that the features are more
readable.
so I have this in my languages.yml:
given: Dado|Dada (found this syntax in a comment within the cucumber codebase)
but when I run
cucumber -l
Hello,
I'm struggling with this controller spec for a few hours now
http://pastie.org/594775
which is failing with an error I can't find any references about,
neither on the list nor on the web in general:
Admin::ImagesController handling PUT /images/1 with successful update
should find the ima
Hello,
I've just installed the rspec textmate bundle from svn, and I'm
getting the following error when I try to run a single example:
/Users/oliver/Library/Application
Support/TextMate/Bundles/RSpec.tmbundle/Support/lib/spec/mate.rb:2:in
`require': No such file to load -- rubygems (LoadError) fr
command line. it still doesn't work from locomotive though.
2008/2/25, Oliver Barnes <[EMAIL PROTECTED]>:
> Hello,
>
> I've just installed the rspec textmate bundle from svn, and I'm
> getting the following error when I try to run a single example:
>
> /User
Hello,
I must be doing something dumb, but here it goes...
why does this work?
before(:each) do
@work = Work.new
end
#for testing validates_presence_of :title
it "should require a title" do
@work.title = nil
@work.should_not be_valid
end
while this doesn't:
def valid_w
Hi Namrata,
thanks, that's a great resource and I ended up beefing my tests based
on the recommendations there.
actually though, the problem I was having was that validations weren't
being recognized by the test suite. later I found out that when
regenerating the scaffold for the app a while back
hello,
when running rake spec, I'm getting a stack trace similar to the one
mentioned in this ticket, which has been resolved:
http://rspec.lighthouseapp.com/projects/5645/tickets/237
but from what I understood, if the project is using rspec 1.1.3 (as is
the case with mine), this shouldn't be ha
hello spec'ers,
i'm in the hunt for guides on testing controllers with rspec, would
you guys recommend any?
thanks
Oliver
--
Oliver Azevedo Barnes
[EMAIL PROTECTED]
+55 11 9768 0193
http://www.linkedin.com/in/oliverbarnes
http://workingwithrails.com/person/4704-oli
gt;:
> On Mon, Mar 10, 2008 at 2:01 PM, Oliver Barnes
> <[EMAIL PROTECTED]> wrote:
> > hello spec'ers,
> >
> > i'm in the hunt for guides on testing controllers with rspec, would
> > you guys recommend any?
>
>
> Oldie but goodie (I hope) -
&
e...
2008/3/13, Pat Maddox <[EMAIL PROTECTED]>:
> On Thu, Mar 13, 2008 at 3:54 PM, Oliver Barnes
>
> <[EMAIL PROTECTED]> wrote:
>
> > thanks pat, it's still a good primer ;)
> >
> > I'm getting a better handle at it, but I'm st
thanks, will do - I am still wrapping my mind around mocks and stubs indeed :)
2008/3/13, Pat Maddox <[EMAIL PROTECTED]>:
> On Thu, Mar 13, 2008 at 4:55 PM, Oliver Barnes
>
> <[EMAIL PROTECTED]> wrote:
>
> > I see. I had gotten to trying the first way you suggested (
ROTECTED]>:
> And the other thing I am not seeing you are calling create
> somewhere in the spec?
>
> Always a good idea to post all the code :-)
>
>
> Cheers
> Shane
>
>
> On 14/03/2008, at 12:55 PM, Oliver Barnes wrote:
>
>
> > I see. I h
I got the spec and controller minimally working now, here's the code
paste for both in full.
http://pastie.caboo.se/165743
still working on it, any suggestions on possible improvements would be
greatly appreciated.
2008/3/14, Oliver Barnes <[EMAIL PROTECTED]>:
> thanks, will d
27 matches
Mail list logo