Re: [rspec-users] Rails 3, Rspec 2 - flash notice

2010-04-28 Thread Andrei Erdoss
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 dchelim...@gmail.comwrote: On Apr 27, 2010, at 9:19 PM, Andrei Erdoss

Re: [rspec-users] testing against a live environment

2010-04-28 Thread Matthew Van Horn
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

Re: [rspec-users] File creation

2010-04-28 Thread ben rooney
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

[rspec-users] .size.should === (4..5)

2010-04-28 Thread aidy lewis
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

Re: [rspec-users] .size.should === (4..5)

2010-04-28 Thread David Chelimsky
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, got: 4

Re: [rspec-users] Rails 3, Rspec 2 - flash notice

2010-04-28 Thread David Chelimsky
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:

[rspec-users] Google App Engine

2010-04-28 Thread Jeff Huter
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

Re: [rspec-users] .size.should === (4..5)

2010-04-28 Thread aidy lewis
On 28 April 2010 19:01, David Chelimsky dchelim...@gmail.com 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

[rspec-users] rcov not working?

2010-04-28 Thread Patrick J. Collins
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 =

Re: [rspec-users] rcov not working?

2010-04-28 Thread Jay McGaffigan
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 patr...@collinatorstudios.com wrote: I followed the instructions in the rspec book to setup rcov.  I appened to the end of

Re: [rspec-users] more rspec questions

2010-04-28 Thread Adam Sroka
On Tue, Apr 27, 2010 at 4:56 PM, Patrick J. Collins patr...@collinatorstudios.com 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