> I would go a step further and say that adding an address to card is
> not very interesting (Just like iterating over addresses, adding them
> should work out of the box assuming Ruby itself isn't broken.)
Well, I ended up restructuring my code and I wrote tests for everything I
thought were impo
On Tue, Apr 27, 2010 at 4:56 PM, Patrick J. Collins
wrote:
>> If something in the code you are testing depends on the return value
>> of a method then you would use a stub. e.g.:
> Right, but what I am asking is--- if all of my "slave methods" are relying on
> stored card data from the @card inst
It looks like it can't find Rcov... do you have rcov installed? can
you rcov --help from a command line?
Thanks
Jay
On Wed, Apr 28, 2010 at 11:10 PM, Patrick J. Collins
wrote:
> I followed the instructions in the rspec book to setup rcov. I appened to
> the end of my RAILS_ROOT/Rakefile:
> re
I followed the instructions in the rspec book to setup rcov. I appened to the
end of my RAILS_ROOT/Rakefile:
require 'rake'
require 'spec/rake/spectask'
namespace :spec do
desc "Run specs with RCov"
Spec::Rake::SpecTask.new('rcov') do |t|
t.spec_files = FileList['spec/**/
On 28 April 2010 19:01, David Chelimsky wrote:
> To phrase it like that, yes. You could to this now:
>
> [4,5].should include(obj.size)
Nice
> HTH,
> David
Thanks
Aidy
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailm
Can someone provide instructions for setting up rspec with Rails on
Google App Engine?
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
On Apr 28, 2010, at 9:01 AM, Andrei Erdoss wrote:
> The flash notice test is not working in 2.0.0.beta.8. I tried it with
> redirect_to messages_path, :notice => "message" or redirect_to messages_path,
> :flash => {:notice => "message" }
Please add an issue for this:
http://github.com/rspec/rs
On Apr 28, 2010, at 12:53 PM, aidy lewis wrote:
> Hi,
>
> I would like to test whether an array size is either of two integer
> obejects
>
> mark_up_parser.sorted_xml.size.should === (4..5)
>
> However I am recieiving an exception of:
>
> expected: 4..5,
>
Hi,
I would like to test whether an array size is either of two integer
obejects
mark_up_parser.sorted_xml.size.should === (4..5)
However I am recieiving an exception of:
expected: 4..5,
got: 4 (using ===)
Do I need to write a custom mat
Rick
Many thanks - I think the idea of breaking out the actual file writing
from the code generation is a great one. I don't need to test File I/O
- I think I can assume that that works just fine...
Many thanks for your help
Ben
___
rspec-users mailing
I've been using rspec with webrat, for exactly this sort of thing, as
detailed here: http://blog.veez.us/2009/09/11/integration-testing-without-cucumber
On Apr 27, 2010, at 5:36 AM, Martin DeMello wrote:
I have a series of tests I want to automate, which involve running
shell scripts in a "l
The flash notice test is not working in 2.0.0.beta.8. I tried it with
redirect_to messages_path, :notice => "message" or redirect_to
messages_path, :flash => {:notice => "message" }
On Wed, Apr 28, 2010 at 1:08 AM, David Chelimsky wrote:
> On Apr 27, 2010, at 9:19 PM, Andrei Erdoss wrote:
>
> I a
12 matches
Mail list logo