search for: bhelmkamp

Displaying 11 results from an estimated 11 matches for "bhelmkamp".

Did you mean: helmkamp
2006 Oct 06
8
Expecting calls with two different parameters
Hello, I''ve just started using Mocha in the tests for my Rails app, and I''ve run across an issue with mocking a method that should be called with different parameters. How would I setup a mock that expects that a method will be called once with no paramaters, and a second time with a parameter? I''d be tempted to shortcut and just do something like
2007 Jan 09
6
spec not running in TextMate
I tried running a spec with command-r in TextMate and got: /Library/Application Support/TextMate/Bundles/RSpec.tmbundle/Support/ lib/spec_mate.rb:1:in `require'': No such file to load -- rubygems (LoadError) from /Library/Application Support/TextMate/Bundles/ RSpec.tmbundle/Support/lib/spec_mate.rb:1 from /tmp/ temp_textmate.GplhPr:3:in `require'' from
2006 Oct 08
9
Organizing tests and mocha expectations
I''m simultaneously getting into using Mocha and RSpec-style tests (courtesy of the simply_bdd plugin) and I''m struggling with some issues while trying to organize my specs/test. Here''s a code example illustrating the problem: context "update cliient invalid data" do include ClientsControllerSpecHelper specify "should render edit form" do
2006 Oct 17
4
Mocking the rendering of a Rails template
Hello all, I''m having difficulty setting up mocks such that I can verify that Rails was going to render the right template file (for example new.rhtml) and stop Rails from performing the actual rendering. After peeking at Rails'' internals, I tried two techniques as illustrated here: http://pastie.caboo.se/18197 Neither worked. I think the first one failed because Rails
2007 Mar 19
24
alias method spec?
I am completely baffled by this one - My guess is that there is no pure ruby way to do this - but how could I set up a spec to test that one method is an alias of another? Thanks for any help, Scott
2006 May 20
1
Rails Day 2006 -- 24 hour programming contest on July 17th
I just launched the website for Rails Day 2006, the second annual 24 hour Ruby on Rails development contest. Teams of one to three people have 24 hours to develop a Rails application from scratch. When the contest is over, entries are judged, and cool prizes are awarded. http://www.railsday2006.com/ Sponsoring Rails Day is a great way to promote your company to the geek demographic. If
2007 Mar 25
3
New Style: describe-it instead of context-specify
Hello, in the tunk, i found a new style for spec: describe Foo do it "should do bar" do ... end end instead of context "Foo" context "should do bar" ... end end The Rails-Textmate-bundle in trunk use only the new "describe-it" style, What are the reasons for the new style ? Shall i use the new style from now on ? Hussein
2007 Feb 17
4
RSpec usage
Hey all, Trying to get feel for RSpec usage so I''m taking a straw poll... What''s the largest project you''ve used RSpec on in terms of app LOC app and spec LOC? Also, how long have you been using RSpec in "production" code? -Bryan
2007 Feb 28
12
Specifying that code is called in a block
Not sure if this is possible currently. I have a section of code like this: ActiveRecord::Base.transaction do cow.save! duck.save! dog.save! end (Names changed to protect the innocent.) I''d like to specify that the saves run in a transaction. I can do ActiveRecord::Base.should_receive(:transaction).and_yield But is there any way to specify that the code is
2006 Mar 28
0
Rails Day 2006
Hey guys, Is any work being done on organizing Rails Day 2006? As a participant in 2005, it was lots of fun, and I''d really like to see it continued. RailsDay.com seems to be down. Who organized the last one? Will they be running it again? If no one is doing it, I might. -Bryan -- http://www.MyCongress.org/ -- coming soon
2003 Mar 17
1
Seperate servers for home directory space and logins
I'm trying to run the PDC for my domain on a seperate server from the home directory space. Also, I want each user to be able to FTP in with their domain username and password and access files in their home directory and only -their- home directory. It seems that I would need a seperate linux account for every user on the home directory server in order to fulfill my FTP requirement. Then