Why not stub System.out.println, possibly with message expectations if
necessary?
>
> On Sep 30, 2010, at 10:06 AM, GregD wrote:
>
>> Hi all,
>>
>> I'm testing java classed using rspec and jruby. The java super class
>> is trapping an exception and sending a custom message to stdout along
>> with
communication.
spec/controllers/users_controller_spec.rb:
require 'spec_helper'
describe UsersController do
describe "POST create" do
it "creates a new
user" do
User.should_receive(:new).with("name" => "Shea Levy")
post
:create, :user =
is a complete refresh necessary? If
the former, how do I go about doing that? If the latter, how do I do it in
a way that keeps overall functionality of the resulting project the same as
the original?
Cheers,
Shea Levy___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
eature(s) and spec(s)
would I write to drive me to that migration?
Cheers,
Shea Levy___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
Hi all,
What's the best way to handle features which rely on an
external API in a behaviour-driven way? Suppose I have an app which manages
online ordering from several independent stores, with a cut taken from each
purchase, and I want to add a feature whereby orders made by phone that
were fa
Hi all,
Suppose I have a table that lists all of my products, that
includes a a somewhere in the first , and each product has its data held
within a . After updating a product's description, I want to write
something like:
within "tr#category#{category.id}" do
under_header
"Description" do
Hi all,
I am working on a feature to allow administrators of an online
store to rearrange the order in which their product categories show up on
the site. I want to use a simple implementation of sortable_lists
(madrobby.github.com/scriptaculous/sortable-lists-demo/) to allow the
administrators