Displaying 20 results from an estimated 112 matches for "denatale".
Did you mean:
debatable
2008 Mar 05
14
ActiveRecord, spec''ing find has right :order parameter
...#39;'))
get ''index'', :sort => ''up''
This ability to partially specify the contents of a hash argument
seems to be generally useful, particularly for Rails, and was
wondering if anyone had done this. I don''t think it would be too hard.
--
Rick DeNatale
My blog on Ruby
http://talklikeaduck.denhaven2.com/
2007 Nov 30
4
Autotest''ing specs on non-rails app
...th rspec on a non-rails project.
my Rspec gem is version 1.0.8, ZenTest is 3.6.2
project structure
$ ls *
lib:
parser.rb
spec:
parser_spec.rb
autotest finds and runs the spec, but it won''t detect changes to lib/parser.rb
I know it''s something stupid, but...
help?
--
Rick DeNatale
My blog on Ruby
http://talklikeaduck.denhaven2.com/
2008 May 16
3
Which rspec for rails 2.1RC1?
I''m working on porting our app. Do I need to upgrade rspec from 1.1.3?
If so which version.
BTW the installation doc at
http://rspec.info/documentation/rails/install.html seems to be stuck
in the pre-git days.
--
Rick DeNatale
My blog on Ruby
http://talklikeaduck.denhaven2.com/
2008 Jan 29
3
I thought the RSPec community might be interested
in my latest blog posting
:http://talklikeaduck.denhaven2.com/articles/2008/01/29/why-i-dont-mind-using-rspec-in-fact-ive-come-to-love-it
--
Rick DeNatale
My blog on Ruby
http://talklikeaduck.denhaven2.com/
2009 Apr 26
9
Problems running features with Textmate Cucumber bundle
...since it
seems to be the most evolved.
When I try to run a feature with cmd-R, instead of actually running I
see something like:
Running: cucumber
/Users/rick/mastermind/features/codebreaker_starts_game.feature --format=html
false
Cucumber runs fine from bash.
Am I missing some setup?
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale
2008 Mar 14
5
Branching scenarios, GivenScenario and database
...cenario
as a pre-condition. Cleaning it before is more difficult,
particularly if I''m using parameterized steps. It would be nice if I
could somehow use database transactions, but I don''t see a nice way to
do that either.
Has anyone faced issues like these? Any ideas?
--
Rick DeNatale
My blog on Ruby
http://talklikeaduck.denhaven2.com/
2007 Dec 13
16
"Tricks" for testing after_create callback???
...id: 343839476, recipient_id: 21341157, message_type: nil,
created_at: "2007-12-12 21:53:16", updated_at: "2007-12-12 21:53:16">)
I figured I''d through this out to the list for ideas on how best to
approach this before I go to bed and sleep on it. <G>
--
Rick DeNatale
My blog on Ruby
http://talklikeaduck.denhaven2.com/
2008 Jan 21
5
attachment_fu and story runner, any updates
...ration testing and
multipart form posting. David offered to incorporate a patch to story
runner at the end of the reference thread in ruby-talk, although just
which patch confuses me, it would seem to be one from
http://dev.rubyonrails.org/ticket/4635
So what is the current status here?
--
Rick DeNatale
My blog on Ruby
http://talklikeaduck.denhaven2.com/
2009 May 24
11
Class method not being stubbed
Hi guys. I''m setting an expectation on a class method. For some
reason, the method isn''t being stubbed, and the expectation isn''t
seeing the call.
In KeywordListsController#create, I call the private method
#create_keywords_and_associate, which calls AdSenseHeavenParser#parse
.
Thus, some of my specs set an expectation on AdSenseHeavenParser#parse
. However, that
2008 Mar 11
2
Composed Stories/Scenarios
...se
are ''tested'' when the original scenario is run.
Does this make sense? How have others dealt with this?
This is probably at tension with the XP notion of stories being
minimal and isolated, but RBehave/RSpec stories already seem to have
that tension IMHO.
Thoughts?
--
Rick DeNatale
My blog on Ruby
http://talklikeaduck.denhaven2.com/
2009 Oct 23
1
Anyone using the rspec textmate bundle with Ruby 1.9.1
I''m now in the process of facing converting a rails app to use Ruby 1.9.1.
Has anyone figured out how to use 1.9 with the RSpec bundle in
textmate and preferably how to switch back and forth?
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale
2007 Dec 14
13
RSpec-1.1.0 is released
The RSpec Development Team is pleased as glug (that''s kind of like
punch, but more festive) to announce RSpec-1.1.0.
Thanks to all who have contributed patches over the last few months.
Big thanks to Dan North and Brian Takita for their important work on
this release. Dan contributed his rbehave framework which is now the
Story Runner. Brian patiently did a TON of refactoring around
2008 Mar 08
3
should_receive(:foo).with(any_object)
Hey,
I just ran into a situation where I would like to expect a method call
with an argument I know and another one, which is a random number. I
think mocking up the rand method is somehow ugly so I thought maybe
this is the first time where I can take something from Java to Ruby ;)
Java''s EasyMock mocking library knows things like "anyObject()" and
"anyInteger()" in
2008 Jan 31
4
reby-debug and rspec
How do I use the ruby debugger with a specific test (not the whole spec file)? I want to do something like this.
$ rdebug spec/models/user_spec.rb -s "should error if not new_record"
____________________________________________________________________________________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search.
2008 Feb 24
6
Rails 2.0/Autotest "Color is not a class"
I''ve made a model called Color to manage custom styles for my
application. It works find when I''m running it locally in Mongrel,
and I haven''t tried to deploy it yet.
I use ZenTest and Autotest, and when I run autotest I''m getting the
following message:
"C:/rails/band/trunk/app/models/color.rb:1: Color is not a class
(TypeError)"
My Color model is
2009 Aug 12
5
Challenge for object_id, Garbage Value
I am facing strange problem.
I have an object @part=MainPart.find(:all)
1. @part.each_with_index do |mainpart,index|
2. <p><%= mainpart.object_id%></p>
3. end
Here problem is that object_id is reserved for rails. Here
object_id field in my table . Now i want to get value <%=
mainpart.object_id%> is giving GARBAGE VALUE. Is there any solution
apart from
2008 Jan 21
3
Story runner "macros"
...ts the story as
When I post to
So the output is even less useful for talking to the client.
Now I really like the idea of the parameterized stories, but the step
away from client-speak makes me shy away from them. Is there a way to
get the power without loosing the intelligibility?
--
Rick DeNatale
My blog on Ruby
http://talklikeaduck.denhaven2.com/
2009 Oct 30
1
Any pioneers who've configured passenger to support some apps running in 1.8.x others in 1.9?
...ing a separate 1.9 version of the Passenger Apache module and
some how installing both, a probably forgoing the PrefPane for at
least one of the ruby versions.
Has anyone trod this road before? Is there an easier way. Am I crazy?
Those questions are not meant to be mutually exclusive.
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale
2007 Dec 18
2
rpec_scaffold and nested resources
...''t know if it''s relevant to this). But the changes to the
controller are much easier than the changes to the specs.
I was starting to think about writing a plugin/tool to address this,
but I was wondering if anyone had any insight or had already started
down this path.
--
Rick DeNatale
My blog on Ruby
http://talklikeaduck.denhaven2.com/
2011 Feb 03
2
Possible to ask rspec to show more code in the debugger?
This came up from an other issue where I needed to go check something in
test::unit. Immediately when I dropped into the debugger in test::unit I saw
something I have been missing: test unit by default shows a number of lines
of code. Is there a way to make the rspec debugger do this?
I am not sure if it is just me, but seems to me that when I moved to rspec,
certain things which seemed to be