search for: danielfisch

Displaying 14 results from an estimated 14 matches for "danielfisch".

Did you mean: danielfischer
2007 May 31
16
Could anyone please help with rspec/nested resource behavior checking?
My problem has been listed here: http://railsforum.com/viewtopic.php?pid=25439#p25439 Don''t think it would be required to completely re-type it here :) Thanks! -- -Daniel Fischer http://danielfischer.com - Geek Blog http://abigfisch.com - Portfolio http://writersbeat.com - Writing Community
2007 Aug 08
5
Can''t seem to spec a ActiveRecord::RecordInvalid exception properly...
1 def create 2 @user = User.new(params[:user]) 3 @user.save! 4 self.current_user = @user 5 redirect_to user_path(@user) 6 flash[:notice] = "Thanks for signing up!" 7 rescue ActiveRecord::RecordInvalid 8 render :action => ''new'' 9 end I can''t seem to properly spec this out. I am trying numerous things, the latest one is
2007 May 24
3
Annoying problem, stack error
.../models/user_spec.rb" "spec/models/vote_spec.rb" --options "/Users/sparta/Projects/work/idastudios/ff/config/../spec/spec.opts" failed (See full trace by running task with --trace) Anyone have an idea what the heck is going on? Thanks, Daniel -- www.writersbeat.com www.danielfischer.com
2007 Aug 09
7
Integrating polymorphic models into controllers views? how?
I''m having trouble trying to get this to work. How the heck do you get a polymorphic controller to work? Especially integrating it with a view? Let''s say that we have shows, and episodes, then comments. A show has many episodes, an episode has many comments. the route is /shows/1/episodes/1/ Now to add a comment to that episode, how would I do it? Let''s say that the
2007 May 25
1
RCov?
...rcov all of "my" code, so where would I put this, in the regular Rakefile in the app directory? That doesn''t make much sense though, does it? (Questioning because the syntax id different). Anyway, I''m confused, and I could use help, thanks! -- www.writersbeat.com www.danielfischer.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rspec-users/attachments/20070525/40733570/attachment-0001.html
2009 Jan 07
0
Actionmailer and postfix settings
...i, I am having problems configuring my actionmailer to work with postfix. I followed this tutorial: http://howtoforge.org/virtual-users-and-domains-postfix-courier-mysql-centos5.1 and i got the server set up. at first i fixed the mail settings to work with gmail using this tutorial: http://www.danielfischer.com/2008/01/09/how-to-use-gmail-as-your-mail-server-for-rails/ and my app worked with gmail. but now i want it to work with my newly built email server. I read somewhere if your server has tls u have to do something special with actionmailer for it to work so i am relying on fischer''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
2007 Dec 03
18
Need help mocking this out
Let''s say you''re using the restful_authentication plugin. You have a model called articles. On the index action of the articlescontroller you simply want to spec out that it''ll scope the results to the ownership of the current_user. It should NOT include any articles other than the articles that user owns. How would you properly spec this out? Thanks for the help!
2007 Jun 02
7
I''m really bad at controllers, help please.
Hey, Sorry for so many questions - I''m really bad at this right now. I''m trying to cover the following code w/ rspec def index if params[:user_id] @user = User.find(params[:user_id]) @messages = @user.messages end end So basically what I''m doing is listing all the messages for a user, provided there is an id parameter. describe
2007 Jul 12
3
Agh, this is annoying. Why is this happening?
My problem: Mock ''Task_1005'' received unexpected message :user_id= with (1) No matter what I do to try to stub that out it will still fail out and give me that message. Here is my spec describe TasksController, "handling POST /tasks" do before(:each) do @task = mock_model(Task, :to_param => "1", :save => true)
2007 Jun 01
0
Okay, new question - dealing w/ logging in restrictions (controller?)
...ogin redirect_to post_url(@post) end end Now I can easily test this functionality by seeing if I get redirected if I hit that page, but what if I actually want to be logged in, so I can test to see if the edit action is working? Any input on this? Thanks. -- -Daniel Fischer http://danielfischer.com - Geek Blog http://abigfisch.com - Portfolio http://writersbeat.com - Writing Community
2007 Aug 03
2
Plugins ''speced'' with rSpec?
Hello, I''m trying to figure out how to setup a spec structure for plugins. I''m getting pretty lost in figuring out how to isolate a plugin enviornment emulating rails, but not actually being reflected upon the current rails project. What I mean is this, let''s say I have a comment plugin. This has two things in lib, the comment model (comment.rb) and then the module
2008 Aug 26
6
Rails deployment issue... no such file or directory - getcwd? huh?
Everything works fine locally but when I deploy I get this: Errno::ENOENT (No such file or directory - getcwd): /vendor/rails/activerecord/lib/../../activesupport/lib/ active_support/dependencies.rb:78:in `expand_path'' /vendor/rails/activerecord/lib/../../activesupport/lib/ active_support/dependencies.rb:78:in `require_or_load''
2007 May 31
28
Another attempt for a succinct model validation DSL
On 5/28/07, David Chelimsky <dchelimsky at gmail.com> wrote: > The behaviour you''re trying to describe is that the User should > require that passwords bear certain qualities - in this case a length > between 5 and 40. So you need to ask yourself how the User should > behave when this requirement is violated, and then specify that it > behaves that way. > >