search for: talklikeaduck

Displaying 20 results from an estimated 111 matches for "talklikeaduck".

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/
2007 Nov 30
4
Autotest''ing specs on non-rails app
...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 21
5
attachment_fu and story runner, any updates
...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/
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
2007 Dec 13
16
"Tricks" for testing after_create callback???
...1157, 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 Mar 11
2
Composed Stories/Scenarios
...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/
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
2007 Nov 14
2
Exception Notification plugin options hash handling????? backwards merge?
...e request insofar as providing an env method which returned a hash mapping "HTTP_HOST" to "localhost" If this is a bug rather than something I''ve overlooked, should I submit a patch to the rails trac or is there somewhere else? -- Rick DeNatale My blog on Ruby http://talklikeaduck.denhaven2.com/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to...
2008 Jun 09
10
Testing file attachment with Paperclip
Does someone have an example on faking a file upload for just ensuring it gets called, without actually uploading the file to s3. I thought that stubbing Model.has_attached_file would be enough, but it doesn''t seem so ... This is what I did: Video.stub!( :has_attached_file ).with( :name ).and_return( true ) has_attached_file is from paperclip, it gets mixed to the model. 1)
2008 Mar 14
5
Branching scenarios, GivenScenario and database
...ning 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/
2008 Feb 12
8
has_many through question
I have made 3 tables +------------+ +----------------+ +------------+ |people | |people_campaigns| |campaigns | +------------+ +----------------+ +------------+ |id :int | <----> |people_id :int | /-> |id :int | |name :string| |campaign_id :int| <-/ |name :string| |etc ... | |exported :int |
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 May 03
4
silly partial qu
hi all, i''m just trying to check a partial has been rendered, by using: response.template.should_receive(:render).with(:partial => "tasks/list") this passes, even if I put something bogus in the partial name, such as: response.template.should_receive(:render).with(:partial => "___tassdfsdfks/list") does anyone know why this doesn''t fail? is this the
2008 May 21
8
before_filter with multiple roles
I have multiple roles in my application. Now I want to block a method for all users except the administrator and a manager. When I do this: before_filter (:check_administrator_role), :only => [:administration] before_filter (:check_taskmanager_role), :only => [:administration] The user must have both roles. How can I change that to an "OR" combination? -- Posted via
2008 May 26
2
RSpec-1.1.4
The RSpec Development Team is happy to announce the release of RSpec-1.1.4. See http://rspec.info/changes.html for details of what changed in this release. For Rails developers: * This release of RSpec supports Rails-2.1.0-RC1, 2.0.2, 1.2.6 More info at http://rspec.info. Cheers, David
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
2009 Oct 30
1
Any pioneers who've configured passenger to support some apps running in 1.8.x others in 1.9?
...ion 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