similar to: Shameless plug

Displaying 20 results from an estimated 10000 matches similar to: "Shameless plug"

2006 Oct 04
3
do we need stubbing?
Hey all - The trunk currently supports three types of mocking/stubbing: Mock Objects (created dynamically at runtime) Partial Mocking of methods on existing classes Stubbing of methods on existing objects or classes The main difference between Partial Mocking and Stubbing is that Stubs don''t verify. I''m wondering if we really need the stubbing facility at all, given that we
2007 Aug 14
4
Stubbing all methods
Mocha''s mock/stub framework has the ability to stub all methods on a mock given. Does RSpec''s mocking framework have this ability? And if not, is there some reason it shouldn''t be implemeneted? Regards, Scott
2007 Jan 06
1
Camping Podcast
I''m putting together an episode of the Rails podcast that will be dedicated to Camping. I already have the first interview recorded. I''d like to get 3 or 4 more short interviews (short...maybe 4.096 minutes each). If you''d like instant fame, send me an email and tell me what camping project you would like to talk about, what your skype username is, and when is a good
2007 Mar 24
0
Using spec fixtures with integration tests
Hi all, How can I use spec fixtures with rails integration tests ? I''ve tried adding {{ fixtures "../../spec/fixtures/myfixture" }} to the integration test but the fixtures are not loaded when I run the rake task. Rails doesn''t load symlinked fixtures either so I copied the files from spec/fixtures for the time being. Not very DRY. Any ideas ? Keith
2012 Apr 02
0
call for volunteer: FLOSS weekly podcast opportunity
The FLOSS weekly podcast is interested in doing an interview about libvirt development on June 6, at 9:30am Los Angeles time (UTC-7). For more information on past podcasts, see: http://twit.tv/show/floss-weekly With prodding from Justin Clift, I have volunteered to take on the task, but the show host, Randal, prefers to have two developers per show, so I'm looking for anyone else who has
2006 Mar 30
0
Shameless Plug, early rails application
Well, I wanted to mention my early rails application(in the event I stop working on it). At present it is a link blog, you post a link and now we have a listing of links from different users. Ideally, it has been a week or two. On rails in general, it is really nice, you want to add an action or update a model, you just do it as opposed to wrapping something in 10 layers of XML. The
2007 Mar 16
0
Shameless plug: virt-factory
Hi, we made a very early version of a tool that we want to evolve into a full ''virtualized data center management tool'' available[1] - one of the reasons I post here is that it uses puppet under the hood quite heavily to control the virtual guests and hosts, and integrates provisioning of puppet into guests out of the box. We''d love to hear feedback/comments/feature
2007 Jun 25
5
strange mock error
I''m testing using the rspec mocking framework and rspec 1.0.5 and I''m getting the following strange error: #<Spec::Mocks::Mock:0x337f7c8> expected :set_defaults with (#<Service: 0x19c4040 @name="Service_1023">, {"1"=>"1", "2"=>"2"}) but received it with (#<Service:0x19c4040
2006 Oct 15
0
Samba interview on FLOSS weekly podcast.
In the "shameless self promotion" dept :-), FLOSS weekly hosted by Chris DiBona has an interview with yours truely (with help from Guenther) - available here : http://www.twit.tv/floww14 Hope you find it fun ! Jeremy.
2009 May 04
6
cucumber - when to stub/mock
I''m just curious about this, since my solution involved stubbing a call to GeoIp. Is there a good rule of thumb for when you make exceptions to the ''no stubbing'' philosophy of Cucumber? My step was: "Given I am accessing the site from Japan," but I can think of other situations - mostly when interacting with web services, that I''d probably
2007 Jun 26
2
Acts as Authenticated
I am using Acts as Authenticated and I need to call current_user in my views. How do I mock current_user and other methods of Acts as Authenticated in my view specs?
2006 May 23
9
Shameless plug of my web 2.0 app
Apologies if this is out of place. I just wanted to mention to the list that I''ve completed my first Rails app and wanted to show it to you guys. The site is The Best Stuff in the World! which you can reach here: http://www.thebeststuffintheworld.com/ Any thoughts would be great, I can be reached at adrian@mindjar.com. I''ve been lurking here for a little while, and well,
2008 Jan 11
2
guide to good mocking?
Hi all - does anyone know of a good blog post or wiki or something with a good guide to mocking? I''ve got some degree of responsibility for people who are creating mocks. I''m supposed to actually be telling them the best way to do it. In some cases we have code with like a bazillion mock(:x) statements and it''s kind of out of control. I have an idea how the specs should
2007 Mar 27
3
Stubbing out method for all instances
I am using the acts_as_state_machine plugin to control state of an object in my app, however when testing this I need to be able to stub out the guard conditions so that state will change when I fire off an event without depending on other models. Guard conditions simply return true or false so I have an instance method: def encoded? <check state of other objects> return true
2007 Aug 23
1
Hints & examples for content creators & packagers
At speex.org, I read that Speex is well-suited to internet audio streaming and audio books. However, I am having difficulty finding or creating audio-book-type material of acceptable audio quality vs file size. For the sake of comparison, look at the speex sample in Ubuntu's example-content_26_all.deb vs http://podcast.msnbc.com/audio/podcast/pd_mtp.mp3 The mp3 sounds ok, streams and seeks
2007 Oct 25
1
Mocking within a Proc/Block?
The following works: it "should evaluate a passed in block in the context of the interview object" do block = Proc.new { raise unless self.is_a? (Interview) }.should_not raise_error Interview.create(:title => "Text", &block) end However, the following does not: it "should evaluate a passed in block in the context of the interview
2007 Feb 07
5
Mocking ActiveResource
I want to use ActiveResource in my app. Instead of hitting server though, I want it to load from a file when I call find. Any clue how I do that? Pat
2006 Oct 04
0
stubbing/partial mocking
All, Brian Takita has been contributing to a stubs branch to support stubbing and partial mocking on Modules (and therefore classes). I tweaked the syntax a bit and merged it into the trunk, so you can update from the trunk and check out the new stubbing/mocking love. If you prefer to wait for a release, there should be one coming soon-ish (I''m aiming for later this week). As Brian
2009 Feb 06
6
RecordNotFound bubbling thru to cucumber
Hello, I have a controller action that raises a RecordNotFound exception if you''re not allowed to see something. In my global application controller (application.rb), I catch these and render the 404 template. But when I run cucumber (using webrat), it''s getting the full stacktrace (the step blows up). Any ideas why? I have consider_all_requests_local turned off in my test.rb.
2007 Feb 28
4
acts_as_authenticated error with Object#id
I''m getting this when I run my Rails controller specs. <projectroot>/config/../lib/authenticated_system.rb:16: warning: Object#id will be deprecated; use Object#object_id I added "include AuthenticatedTestHelper" to /spec/spec_helper.rb so that my controller tests^H^H^H^H^Hspecs can use the "login_as" helper method. Anyone know how to fix this? -- Cheers,