search for: pasti

Displaying 20 results from an estimated 485 matches for "pasti".

Did you mean: past
2007 Jun 09
11
authentication, controller specs. I think I''m missing something simple ....
...ce I''m sure it will be a use-case that crops up in my application. The basic issue I''m struggling with is how does define mocks/stubs for a controller method that does something of the form: method_a.method_b.find Pasted code/spec/errors here * things_controller http://pastie.caboo.se/69136 * things_controller_spec http://pastie.caboo.se/69137 * Errors w/ find(:all) http://pastie.caboo.se/69138 -- Rick rick.tessner at gmail.com
2009 Jun 14
5
Partials views and instance variables go nil
Hi everyone! Model: http://pastie.org/511290 Controller: http://pastie.org/511285 View new: http://pastie.org/511286 View _form: http://pastie.org/511284 When I hit submit button there''s an error for usuarios(users in portuguese) instance. It does not seems to save usuarios even though it seems to be posted by the form....
2008 Jun 06
2
Problems with view spec and mocking will_paginate
Hi all, I have some failures that not I don''t understand this the pastie with index.erb.html http://pastie.org/private/zgohh6dcts04wpfagfgz5q and this is the pastie for view''s spec: http://pastie.org/210485 and the failure: 1) ActionView::TemplateError in ''/posts/index.html.erb should render list of posts'' undefined method `count''...
2007 Aug 07
4
Problems with raising errors on a mocked object
I''m trying to mock a object to raise a certain error. By doing so I get a ArgumentError on ActiveRecord''s save! method: http://pastie.caboo.se/85628 I''ve tried to debug it but just can''t seem to find what I''m doing wrong. Any help is greatly appreciated. Cheers, Eivind Uggedal
2008 Nov 29
2
SMTP Mailer is KILLING me
...say I''ve tried everything for the past few hours, and I''ve become frustrated to the point of forum-posting. So...ready? Here goes... I keep getting this error: "553 This SMTP server requires authorisation. The password you''ve entered is incorrect" -> http://pastie.org/326542 Only thing is the password IS correct. I checked with my web hoster. So I began some trial and error...like deleting the smtp information from the development.rb page. Nothing happened - same error. I''m really stumped. Here''s everything I''m working with. -...
2007 Jun 28
23
DRYing link_to with a symbol
Hi, I just put in a patch that allows you to DRY up this: <%= link_to @company.name, @company %> to this: <%= link_to :name, @company %> The symbol indicates the method to be called on the object passed in the link_to options. http://dev.rubyonrails.org/ticket/8789 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the
2006 Dec 24
6
What do you think of this controller spec?
...specifications: one for when the user isn''t logged in, and one when the user is logged in but requests someone else''s book. do_request automatically calls do_get/post/put/delete depending on what''s implemented. Here''s all the code: books_controller.rb: http://pastie.caboo.se/29469 books_controller_spec.rb: http://pastie.caboo.se/29470 spec_helper.rb: http://pastie.caboo.se/29471 The specs just feel somewhat unwieldy to me...maybe it''s because the controller code is very simple and elegant, and the spec looks big and bloated in comparison. Also, it...
2007 May 31
28
Another attempt for a succinct model validation DSL
...quot;valid"/"invalid"), because they get right to the core of what actually happens, i.e. what the behavior is. And I like the emphasis on the examples (especially since I often think of TDD/BDD as EDD, Example Driven Design). So here''s my latest thought-experiment: http://pastie.caboo.se/66478 And also, a simpler multi-field version: http://pastie.caboo.se/66510 Notice how checking all three sides of each boundary is so simple and succinct that there is almost no excuse not to do so. Also, after noticing how similar the multi-field validation is to a fit-table or some o...
2007 Jun 07
6
Problem with response.should render_template
Hello, I have problems with this spec controllers: http://pastie.caboo.se/68634 when I run: rake spec:controllers I get this error: ...............F...... 1) ''DocTypeController should update and redirect to show'' FAILED expected redirect to {:action=>"show", :id=>1}, got redirect to "http://test.host/doc_type/show/%2...
2012 Nov 19
2
Dovecot sieve with postfix.
...cube. If I set virtual_transport to "dovecot", I can only send messages in roundcube, but incoming messages never arrive. Seems I can't get dovecot-lda to work. I need dovecot-lda in order for sieve filters to work. Any idea what I'm doing wrong? Here's `doveconf -n`: http://pastie.org/5401133 `postconf -n`: http://pastie.org/5401157 and `postconf -M`: http://pastie.org/5401177 Note: All I have to do is change virtual_transport = dovecot to virtual_transport = virtual and all will be fine, except for that I won't have sieve filtering which is what I really want. */#!...
2007 Feb 24
3
Spec failing [Possible Bug with kind_of? and instance_of?]
I have a spec which is failing, but I just can''t say why. Maybe I''m missing something painfully obvious? Here is the pastie of the results & the spec: http://pastie.caboo.se/42626 The spec to look for is "should have an array of users" I''ve printed out ("puts''ed") to the terminal the fact that the values are *opposite* to what the spec fails on... Thanks, all, for your...
2007 Oct 19
11
Patch idea for rspec_on_rails
...es) I''m pretty darned proud of it and a couple of people have suggested that I should submit it to the rspec_on_rails project. Before I go to the trouble of writing out rdoc and fully spec''ing it, I just wanted to make sure this was something the community would like. Instead of pasting in the code into the email, I thought I''d just make a pastie and let those interested read it there: http://pastie.caboo.se/108922 I think it would make a nice addition to the current Rails matchers. Here''s hoping you do too. RSL
2007 Aug 12
3
Scope and specing models
...eRecord::AssociationTypeMismatch in ''A new User should know what role it has'' Role expected, got NilClass D:/ruby/projects/restful_authentication_test/config/../app/models/role.rb:5:in `add'' ./spec/models/user_spec.rb:62: script/spec:4: Here''s the user.rb http://pastie.caboo.se/87029 role.rb http://pastie.caboo.se/87030 user_spec.rb http://pastie.caboo.se/87032 The code is based off of RESTful authentication + Ben Curtis'' user roles in Rails Application: http://www.bencurtis.com/archives/2007/06/user-roles-in-rails-applications/ Thanks for your help...
2006 Sep 11
3
Boolean query bug
Hello all, At the end of this script : http://pastie.caboo.se/12711, I made two search. They have to return the same result, but the first return 2 matches and the second only one match. The first is clearly buggy. Do you have an idea ? Thanks. PS: I''ve tested with 0.10.4 -- Posted via http://www.ruby-forum.com/.
2011 Sep 07
0
No upstreams on domU, but downstream works fine
...e LAN and with the gateway). I''ll try to post as much relevant information as I can think of and what all I have tried I disabled all dom0 and domU iptables rules I disabled tx via on dom0 and domU: ethtool - K eth0 tx off One of my domU config files (they are all very similar): http://pastie.org/2452333 ipconfig from domU; http://pastie.org/2452343 route from domU: http://pastie.org/2452350 brctl from domU: http://pastie.org/2452375 xm info from dom0: http://pastie.org/2452409 iptables -L from dom0: http://pastie.org/2452416 iptables -L -t nat from dom0: no rules defined This i...
2007 Aug 02
3
Code works in console but fails test?
So I have message model and each user has many messages. When I run user.messages in the console it returns correctly, however in the test it returns and empty collection? Any thoughts. All the sql is being generate correctly, I checked the log. Here''s a pastie with the code in question. http://pastie.caboo.se/84337 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3Mbo...
2007 Aug 06
5
Problems with array mock
...ental/config/../vendor/plugins/rspec/lib/spec/mocks/proxy.rb:99: syntax error, unexpected ''['', expecting ''\n'' or '';'' def photos[1](*args, &block) does anyone have a good solution for this? the complete code of the helper: http://pastie.caboo.se/85287 the complete code of the spec helper: http://pastie.caboo.se/85289 See you. -- Gast?n Ramos GNU/Linux Counter user #450312 http://gastonramos.wordpress.com/ No a la Matricula Obligatoria http://noalamatricula.wordpress.com/about/
2008 Jun 10
1
Refactoring''s code needs refactoring''s specs?
Hi guys, I have one question: When refactoring the working code I need or should refactoring the specs too? My old code is: http://pastie.org/private/gpskgtavm4yzutanq1ro3w My new refactored code: http://pastie.org/private/2emgi1hr5iga3m9jib4q and the specs that are still passing without refactoring: http://pastie.org/private/qn3uaoin0k2n8vjsusssg Regards. -- "Most of you are familiar with the virtues of a programmer....
2010 Aug 22
2
Build failure building dbox and gnutls
...pam --with-bzlib --with-docs --without-mysql --without-vpopmail --without-sia --without-bsdauth --with-libcap --with-ioloop=epoll --with-storages=maildir,mbox,dbox,mdbox For the dbox build error, the log states: libdovecot-storage.so: undefined reference to `dbox_storage' Configure: http://pastie.org/1106301 - Make: http://pastie.org/private/qtt76kxomhmwqwii20oroq Configure: ./configure --prefix=/usr --sysconfdir=/etc/dovecot --localstatedir=/var --libexecdir=/usr/lib --with-moduledir=/usr/lib/dovecot/modules --with-zlib --with-sqlite --with-ssl=gnutls --with-ssldir=/etc/ssl --with-gs...
2007 Dec 18
3
First Shoot, many more to appear: Rails on Ruby 1.9
Guys, Subject says everything: http://www.frederico-araujo.com/2007/12/18/my-first-successful-booting-rails-2-0-2-ruby-1-9-attempt Even ActionView uses Proc.binding (which isn''t correctly supported in 1.9) it appears that lot of folks will try to put their hands in Ruby 1.9 when it comes out, and of course, try to get Rails with Mongrel running in it. Zed, Wayne, Evan and ry: maybe we