similar to: RSpec impressions

Displaying 20 results from an estimated 800 matches similar to: "RSpec impressions"

2007 Feb 05
1
long jumping out of code in specs
I wrote this abomination just now, and wonder if anyone else has had experience with the pattern behind it. In short, I''m specing an after_create hook on an ActiveRecord model, that calls a bunch of private methods. Instead of stubbing all those private methods (which is verboten anyway, as well as impossible because creating the object which owns those methods is what I''m
2007 Jan 29
0
Rails trunk breakages
Anyone else having an issue with route-generation in specs breaking as of Rails trunk r6062? When I run my specs at r6061, they all pass, and in 6062 I get a trace like this every time my controller generates a route: TypeError in ''Requesting /artists/1 using PUT should redirect to the artist'' can''t convert Fixnum into String (eval):19:in `artist_url''
2007 Jan 08
2
thoughts on mocks and specs
I spent the last couple of days getting my sea legs with Rails and RSpec. I''d been waiting til things seemed calmer before jumping in, and I''m overall very happy with my experience so far. My only real annoyance so far has been forgetting to call "do_post" or "do_create" from my specify blocks. My mocks don''t get the calls they want, and it usually
2007 Jun 23
4
inverse examples? (should fail)
The new "pending" example feature reminds me of a feature I''ve been bouncing around in my head, to aid in refactoring. Often, when I''m changing existing behaviour, I know that certain aspects of the old behaviour should change. Imagine changing the "it" method to perhaps "not" or "old" or "removed"... The behaviour would be to
2006 Nov 20
0
Announcing Monrel Raw Output
Mongrelians, I''ve just posted a GemPlugin for Mongrel, which allows you to skip all header and status-code generation, effectively hijacking the socket for whatever your needs are, from inside the depths of any Rails, Camping, Merb etc application. http://mongrel-raw-out.rubyforge.org/ or gem install mongrel_raw_output I use the plugin at work, where the client insists that testing
2007 Jan 15
2
heckle and rspec on rails
Now that I''m developing a big suite of specs, I really want to run Heckle and see how well I''ve done. Using r1359, when I run: spec spec/models/metadata_report_spec.rb --heckle MetadataReport the result is just to run the specs once and then exit, as though I hadn''t mentioned Heckle. I started looking though rspec to figure out why, but it''s late, so I should
2007 Jan 30
0
nil object in mocks
RSpecrs, I''ve been running into some trouble lately when passing mock objects into rich views. Either I have to obscure my specs by stubbing every method the view would call on my object, or I have to resort to trickery like stubbing ActionController#render, which is also less than ideal. The solution I''ve some up with is a variant on the :null_object option that can be passed
2007 Feb 11
1
Specing Rails Views
Hello - I''m currently trying to write some specs for my rails views. My views depend upon the restful authentication plugin method logged_in? Like so, <% if logged_in? %> <ul id="product-admin-nav"> <dd><%= link_to "create a new product", new_product_url %></dd> </ul> <% end %> However, when I have the following
2006 Nov 25
2
Comparison between RSpec and test/unit
I''m curious, Christian Neukirchen has released test/unit[1] that seems to mirror much of RSpec, but built on Test::Unit, so in some ways less brittle from a Rails-integration perspective, and also allowing you to mix the two together as appropriate. So, has anyone made an informed comparison? I''m new enough that I don''t really know the finer points yet. The syntax is
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
1997 Dec 12
0
happy with Samba
I wish to thank all those responsible for Samba and the web site, and especially the person who compiled Samba for Irix 6.2. I do not have a compiler on my machine yet, nor the knowledge to use one. I'll be installing gcc soon to coincide with my class in C++. I own a very small business with one SGI box and one PC, and Samba is a great convenience. I installed the software with no problems,
2006 Dec 13
4
RSpec and simply_helpful
Hi All I''m having some problems running my view specs when using simply_helpful. I have it semi-working via the following: module SimplyHelpfulHelper def self.included(base) base.send :include, SimplyHelpful::RecordIdentificationHelper base.send :include, SimplyHelpful::RecordTagHelper end end context "The index template" do setup do @shift =
2006 Nov 22
3
Controller Isolation
Hi, I have a project that I had running under rspec 0.6.x and recently upgraded to 0.7.2. I am trying to isolate my controllers from the database as I go through and change all the specs to run under 0.7.2. I am having a problem where I need to make the create! method return the mocked object as well as raise RecordInvalid exception. Is this at all possible? I use the rescue statement in my
2007 Apr 12
3
specing class methods
Here is an example from autotest: class Autotest def self.run new.run end def new ... end def run ... end ... end How would I spec out Autotest.run? Two complications come to my mind: 1. How do I spec out class methods? (please point me to docs, if any. I can only find class level specing on "partial mocks" (of rails class objects) 2. How can I tell
2007 Jun 23
6
Autotest bug with rerunning passing tests?
Am I correct in remembering that autotest (with Test::Unit) would rerun all the tests if a subset of the tests passed? If so, shouldn''t this behaviour also be present in rspec''s autotest library? Scott
2004 Oct 20
2
"Advanced Printer Features" in Samba 3.0.7 / Cups 1.1.20 ...
Hello, I recently figured out, that it is impossible to activate the "Advanced Printer Features" of any printer attached to a samba server. The idea was simple: set up a cups print server, create raw printers, publish them via Samba and distribute corresponding driver files. Everything works fine, except of the general setting for the "Advanced Printer Features". Root is able
2007 Jun 30
2
Strange slowdown occasionally in CentOS 5.0
For some reason, parts of my system are now slowing down to an agonizing crawl from time to time. At first it was my VMWare Server 1.04, which became such a pain that I rebooted. Then, it looked like it was a network-induced thing because the prime culprit was SeaMonkey, particularly with multiple tabs open. I did an ifdown and ifup on my NIC and that seemed to help for a while. But then it
2011 Jan 18
0
Please test winetricks-alpha and add your impressions here
winetricks is about to change a bit; that big long menu is being split up into separate menus for dlls, fonts, settings, apps, and games. You can get the new version from http://kegel.com/wine/winetricks-alpha or the easier-to-remember http://winetricks.org/winetricks-alpha Please try it out and report your impressions here, I'd like to hear them before I make this the default version
2016 Mar 22
3
Automatically forwarding fresh Kerberos tickets?
In an environment where users use smart cards to authenticate on Windows and then use ssh to login to UNIX systems via GSSAPI, it is nigh impossible to renew/refresh the Kerberos credentials in the UNIX session. If the user fails to renew their credentials before they expire, the user is stuck and must log out and log back in to get valid tickets. Meanwhile it is entirely likely that on the
1998 Sep 19
0
R-beta: win95 v62.3 initial impressions
(Win95, v62.3, Guido's port.) The graphapp based console seems a definite improvement. Screen output is much faster. History mechanism present. Can now build whole system because windres not required. Spin-off is that graphapp can be used for completely different applications. A couple of problems. When R started and then library(pkg), get message (not every time though) that pkg unable