search for: osesm

Displaying 17 results from an estimated 17 matches for "osesm".

Did you mean: oses
2006 Dec 27
2
calling a MiddleMan from inside a MiddleMan
Is it possible to call a worker from inside a worker? Right now, if I try, I get a recycled object error.
2006 Dec 12
3
rpec 0.7.4/ rails 1.2rc1 troubles
I believe that I have followed these directions exactly: http:// rspec.rubyforge.org/documentation/rails/install.html My new spec tests work, but my old Test::Unit test don''t produce any output. The only clue I have anything is happening at all are these messages in log/test.log: Spec::Rails::HelperEvalContextController: missing default helper path
2006 Dec 13
1
rspec with rails controllers in subdirectories
Does the rspec rails plugin support controllers in subdirectories under app/controller?
2008 Jan 18
2
CC.rb and RSpec
When trying to configure a rspec 1.1.2 based app in CC.rb, I came across the following: /home/bryan/cruisecontrolrb-1.2.1/projects/support-engines/work/vendor/ plugins/rspec_on_rails/lib/spec/rails/../../../../rspec/lib/spec/ runner/options.rb:218:in `files_to_load'': File or directory not found: cc:build (RuntimeError) from
2007 Jan 04
8
Common setup code and naming specifications
Hello! I have a lot of contexts for testing Rails controllers, that must do something like ''session[:logged_in] = true'' in their setup. How can this be refactored? In unit tests I would simply create a LoggedInControllerTest base class, that all my functional tests would derive from. And another small question: In my controller specifications I often have to decide whether to
2006 Jun 06
5
Mac OSX
I havew installed Ruby and gems on Mac OSX but when i try ti install Rails i get messages Local gem file not found: rails*.gem Attempting remote installation of ''rails'' Updating Gem source index for: http://gems.rubyforge.org ERROR: While executing gem ... (ArgumentError) syntax error on line 23, col 0: `<p>'' Can anyone advise as to reason ? I an using OS 10.4
2007 Dec 31
4
How to run stories with `spec'' command?
Hi, all! I have a story steps array.rb and the story array.story. I can run it with ruby array.rb But when I execute spec array.rb nothing happened. I''m wondering how can I use spec command to execute stories? (executing examples is OK) Or maybe another question. If I have to run stories with `ruby'' command, how can I choose the output format? (I think there''s
2007 Sep 08
11
changes to TextMate bundle
Hi all, I got some help from James Edward Gray II on the RSpec TextMate bundle. For those of you who don''t know James, he runs the Ruby Quiz and also maintains the official TM bundle. Per a couple of patches from him and some advice that I acted on, many of the shortcuts have changed. The bad news is you''ll have to learn new shortcuts. The good news is that the new shortcuts
2006 Dec 24
6
What do you think of this controller spec?
Here''s a controller spec I wrote, it''s for a very simple RESTful controller (well, aren''t all RESTful controllers simple? :) I''ve created a couple spec helper methods to refactor some of the common code...for example, require_login_and_correct_user creates two specifications: one for when the user isn''t logged in, and one when the user is logged in but
2006 Dec 27
0
MiddleMan and RSpec partial mocks
I''m trying to test with RSpec (0.7.5), and I have the following code: MiddleMan.should_receive(:new_worker) Every time I run this code, I get this error: undefined method `new_worker'' for class `DRb::DRbObject'' How do I get around this?
2006 Dec 31
0
backgroundrb 0.2.1 doesn''t always load rails environment
I found this stack trace in my logs. My worker name is MiscWorker, and Qualifier is a Rails model. uninitialized constant MiscWorker::Qualifier: /Users/bryan/ Workspace/sandbox/scraper-trunk/config/../vendor/rails/activerecord/ lib/../../activesupport/lib/active_support/dependencies.rb:476:in `const_missing'' /Users/bryan/Workspace/sandbox/scraper-trunk/lib/workers/
2007 Oct 16
0
new screencast on rspec
http://tinyurl.com/2bolrs I''m working on a series of screencasts on RSpec and BDD. This first iteration is on the real basics. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rspec-users/attachments/20071016/93cf6851/attachment.html
2007 Dec 22
0
rspec story directory structure
I''ve been thinking about the structure of the rspec story stuff, and I''ve come up with this for my first post: stories/ # top level to contain all of our story related stuff stories/helper.rb # top level helper stories/helpers/ # other helpers like custom matchers and other libs stories/steps/ # steps go here stories/features/ # top level for features
2007 Nov 26
0
custom matcher tutorial
I wrote some quick notes up on a custom matcher I wrote around a pattern that I am using constantly. http://smartic.us/2007/11/26/rspec-matcher-for-active-record-associations You could use it as a custom matcher tutorial for the uninitiated or as a possible solution for validations specs for the more advanced. Or you could use it to school me, and explain why my code sucks :) bryanl
2006 Apr 20
4
oci8 mac os x intel
Is rails + oci8 + mac os x intel a winning combination? It appears that oci8 might be a issue.
2007 Jan 05
6
RSpec 0.7.5 with Rails and rcov
I seem to be missing something because I am at a loss on how to get rcov, RSpec, and Rails working together. Would someone mind dropping some hints?
2006 Jul 05
7
multiple mongrel clusters
If this was in the docs, I''ve missed it. How can I have multiple mongrel clusters on a server? All the documentation that I am seeing seems to assume that I am only running one cluster.