Displaying 20 results from an estimated 1000 matches similar to: "Comparison between RSpec and test/unit"
2008 May 05
14
[poll] What was your primary language before you started coding in Ruby?
This is an informal poll.
If you are primarily a Ruby programmer,
- What was your primary language before you started coding in Ruby?
Else,
- What''s your current programming language of choice?
I''ll start:
Perl
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
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
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 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 Mar 17
1
Webgen and incremental generation (nukumi2 did it)
> There is already a plugin in the feature request tracker (created by
> Fritz Heinrichmeyer) which provides blogging and rss support
> (although for webgen 0.3.8). Based on this and comments of other
> people I have taken notes so as to what one would expect from such a
> plugin and when I have enough time I will post them to this mailing
> list for further discussion!
I add
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 =
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
2006 Mar 16
1
Re: rcov 0.2.0 - code coverage tool for Ruby
On 3/14/06, David Holroyd <ruby-talk@badgers-in-foil.co.uk> wrote:
> On Wed, Mar 15, 2006 at 02:23:04AM +0900, Mauricio Fernandez wrote:
> > On Tue, Mar 14, 2006 at 09:27:14AM +0900, David Holroyd wrote:
> > > On Wed, Mar 01, 2006 at 01:31:11AM +0900, Mauricio Fernandez wrote:
> > > > Source code, additional information, screenshots... available at
> >
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
2006 Oct 28
5
RSpec, REST and different formats
Is anyone using RSpec with RESTful rails apps? In my rails controllers I
check request.respond_to? and render different views accordingly.
I noticed that the get method in the rails plugin doesn''t accept headers:
controller_mixin.rb line 92
def get(action, parameters = nil)
@request.env[''REQUEST_METHOD''] = ''GET''
process action,
2006 Jan 03
2
Instant Rails 1.0 Release Candidate 1
This release upgrades the included Ruby to version 1.8.4 and will become the
final 1.0 release of Instant Rails if no serious problems are found.
Instant Rails is a one-stop Rails runtime solution containing Ruby, Rails,
Apache, and MySQL, all preconfigured and ready to run. No installer, you
simply drop it into the directory of your choice and run it. It does not
modify your system environment.
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 Oct 11
1
Retiring test2spec?
Hi all,
We''re thinking about retiring the test2spec translation tool because
it''s becoming a maintenance problem.
Is anyone using it? Would anyone miss it if it went away?
Aslak
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
2006 Jan 23
6
Ruby at O''Reilly Rough Cuts
Not sure if this is old news or not, but it would appear that both the
Ruby Cookbook and a Rails book are now available for purchase at
O''Reilly Rough Cuts (something akin to PragProg''s beta book program):
http://rubyurl.com/nHz
http://my.safaribooksonline.com/?mode=roughcuts&srchtext=ROUGHCUTS
I haven''t tried them yet, but it definitely seems worth checking out.
2007 Jan 30
5
errors while testing resource controller using rpec
I am testing a resource called venue in this piece of code (generated
using script/rspec_resource)
====================
context "Requesting /venues using POST" do
controller_name :venues
setup do
@mock_venue = mock(''Venue'')
@mock_venue.stub!(:save).and_return(true)
@mock_venue.stub!(:to_param).and_return(1)
Venue.stub!(:new).and_return(@mock_venue)
2005 Nov 12
1
Samba/LDAP-Backend stability on Debian Sarge
Hi,
First, excuse me if this post is a bit offtopic, maybe this should be
posted in the debian-users maillist, but I just wanted to read your
experiences with this kind of setup, since I've migrated the server
to Debian Sarge using LDAP Backend to serve clients using WinXP and
Win98, and I've got this serious problems:
- Samba segfaults [1]
- slapd process crashes very often, almost
2006 Nov 19
6
artificial sugar causes cancer
All,
If you look at http://rubyforge.org/tracker/index.php?func=detail&aid=6760&group_id=797&atid=3149
you''ll see that Chad (the submitter) found the source of the bug.
Unfortunately, the source of *this* bug is the *solution* to a
*previous bug* in which Rails was replacing RSpec''s method missing
with its own.
When we settled on underscores, my one reservation was
2006 Dec 08
0
RSpec impressions
After a long week agonizing over a scheduling library, and then
specing it out rather quickly, I''ve got some work I''m pretty happy
with.
As a contrast to Test::Unit, I like the way RSpec spreads my attention
around the codebase while I concentrate on implementing specific
behaviours. In Test::Unit, I tend to write tests around the private
methods of the object under test.
I