Re: [rspec-users] Cookies in RSpec

2007-10-05 Thread Priit Tamboom
On 10/4/07, Nathan Sutton [EMAIL PROTECTED] wrote: So how do you work with cookies properly in rspec now? I noticed in the docs that it mentions session, assigns, and flash, but nothing of cookie. I'm using edge rails so I'm concerned about changes to the cookie mechanisms. I need to assign

[rspec-users] RSpec Book(s) on the radar

2007-10-05 Thread Cody P. Skidmore
I just found this one: http://tinyurl.com/3c3mfa David, are there any other RSpec books in the works? With Regards, Cody Skidmore ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] RSpec Book(s) on the radar

2007-10-05 Thread Lance Carlson
Hurry up! I'm on the wait list! (I think) On 10/5/07, M. Edward (Ed) Borasky [EMAIL PROTECTED] wrote: David Chelimsky wrote: On 10/5/07, Cody P. Skidmore [EMAIL PROTECTED] wrote: I just found this one: http://tinyurl.com/3c3mfa David, are there any other RSpec books in the works?

Re: [rspec-users] RSpec Book(s) on the radar

2007-10-05 Thread David Chelimsky
On 10/5/07, Cody P. Skidmore [EMAIL PROTECTED] wrote: I just found this one: http://tinyurl.com/3c3mfa David, are there any other RSpec books in the works? Yes! Alsak and I are writing Behaviour Driven Development in Ruby with RSpec for the Pragmatic Bookshelf. It's not yet listed on the

Re: [rspec-users] RSpec Book(s) on the radar

2007-10-05 Thread Cody P. Skidmore
Lance Carlson wrote: Hurry up! I'm on the wait list! (I think) +1 With Regards, // Signed // Cody P. Skidmore ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Caveman Questions - how to use mock_model in script/console?

2007-10-05 Thread Scott Taylor
On Sep 11, 2007, at 2:37 PM, Geoffrey Wiseman wrote: On 9/5/07, David Chelimsky [EMAIL PROTECTED] wrote: irb(main):001:0 require 'rubygems' = true irb(main):002:0 require 'spec' = true irb(main):003:0 include Spec::Matchers = Object irb(main):004:0 5.should == 5 = nil irb(main):005:0 5.should

Re: [rspec-users] RSpec Book(s) on the radar

2007-10-05 Thread David Richards
Thank you, thank you, thank you! On Oct 5, 2007, at 7:26 AM, David Chelimsky wrote: On 10/5/07, Cody P. Skidmore [EMAIL PROTECTED] wrote: I just found this one: http://tinyurl.com/3c3mfa David, are there any other RSpec books in the works? Yes! Alsak and I are writing Behaviour Driven

[rspec-users] RSpec Trunk - Successful : Rake Aborted

2007-10-05 Thread Geoffrey Wiseman
$ rake spec --trace (in /work/workspace/ng) ** Invoke spec (first_time) ** Invoke db:test:prepare (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute db:test:prepare ** Invoke db:test:clone (first_time) ** Invoke db:schema:dump (first_time) ** Invoke environment **

Re: [rspec-users] Rails, rSpec edge problems

2007-10-05 Thread Geoffrey Wiseman
On 10/5/07, Ben Mabey [EMAIL PROTECTED] wrote: Hi, Does the Story Runner work on edge rails? I thought that is what the example app was using but I am on the latest Rails and latest rSpec revisions and I am having problems. When I call 'render_template' in a story I get the following:

Re: [rspec-users] Rails, rSpec edge problems

2007-10-05 Thread Ben Mabey
Well, I am not even trying to include anything. I basically have what all teh examples of the story runner have. I can't seem to get the Story Runner to work with a simple example. This is all it takes to make it fail on my app: require File.join(File.dirname(__FILE__), helper) Story Signin

[rspec-users] I can't make RSpec 1.0.8 run in Rails 1.2.3

2007-10-05 Thread Daniel Mantilla
I followed the directions on the site: ruby script/plugin install svn://rubyforge.org/var/svn/rspec/tags/CURRENT/rspec ruby script/plugin install svn://rubyforge.org/var/svn/rspec/tags/REL_1_0_8/rspec_on_rails ruby script/generate rspec And apparently everything was ok. But when I do a rake

Re: [rspec-users] I can't make RSpec 1.0.8 run in Rails 1.2.3

2007-10-05 Thread David Chelimsky
On 10/5/07, Cody P. Skidmore [EMAIL PROTECTED] wrote: I recently installed RSpec into a new project and didn't approach the install the same way. I'm using the same version of Rails and did the following: gem install rspec ruby script/plugin install

[rspec-users] spec'ing view render partial collection, local variable not found

2007-10-05 Thread Andrew WC Brown
I'm trying to spec out a render partial collection but I get the following error 2) NoMethodError in '/games/_game.rhtml should show game name' undefined method `body' for ##Class:0x316580c:0x2f1154c

Re: [rspec-users] spec'ing view render partial collection, local variable not found

2007-10-05 Thread David Chelimsky
On 10/5/07, Andrew WC Brown [EMAIL PROTECTED] wrote: I'm trying to spec out a render partial collection but I get the following error 2) NoMethodError in '/games/_game.rhtml should show game name' undefined method `body' for ##Class:0x316580c:0x2f1154c

Re: [rspec-users] spec'ing view render partial collection, local variable not found

2007-10-05 Thread Andrew WC Brown
1) '/games/_game.rhtml should show game name' FAILED expected /The Battle for Blaze/, got ./spec/views/games/_game.rhtml_spec.rb:39: def before game_1 = mock_model(Game, :name = 'The Battle for Blaze', :salt_grains = 500, :people = 500, :days = nil,

Re: [rspec-users] spec'ing view render partial collection, local variable not found

2007-10-05 Thread Andrew WC Brown
Well when I saw that originally thats what I thought the response was suppose to come after the render but: ActionView::ActionViewError in '/games/_game.rhtml should show game name' No rhtml, rxml, rjs or delegate template found for //_game in /Volumes/EXTERNAL/web/omenking.ca/config/../app/views

Re: [rspec-users] spec'ing view render partial collection, local variable not found

2007-10-05 Thread David Chelimsky
On 10/5/07, David Chelimsky [EMAIL PROTECTED] wrote: On 10/5/07, Andrew WC Brown [EMAIL PROTECTED] wrote: Well when I saw that originally thats what I thought the response was suppose to come after the render but: ActionView::ActionViewError in '/games/_game.rhtml should show game name'

Re: [rspec-users] spec'ing view render partial collection, local variable not found

2007-10-05 Thread Andrew WC Brown
Well I think my biggest problem I was having was the fact that my before block was: def before end instead of before do end So I think its working, although my mock is complaining now: before do game = mock_model(Game, :name = 'The Battle for Blaze', :salt_grains = 500,

Re: [rspec-users] spec'ing view render partial collection, local variable not found

2007-10-05 Thread David Chelimsky
On 10/5/07, Andrew WC Brown [EMAIL PROTECTED] wrote: Well I think my biggest problem I was having was the fact that my before block was: def before end instead of before do end D'oh - can't believe I missed that. So I think its working, although my mock is complaining now:

Re: [rspec-users] spec'ing view render partial collection, local variable not found

2007-10-05 Thread Andrew WC Brown
_game.rhtml_spec require File.dirname(__FILE__) + '/../../spec_helper' describe /games/_game.rhtml do include GamesHelper before do game = mock_model(Game, :name = 'The Battle for Blaze', :salt_grains = 500, :people = 500, :days = nil, :created_at =

Re: [rspec-users] spec'ing view render partial collection, local variable not found

2007-10-05 Thread Andrew WC Brown
As soon as I add a second key to the hash it gives me that error before do game = mock_model(Game, :name = 'The Battle for Blaze', :enabled = 'true') game.should_receive(:name).and_return('The Battle for Blaze') game.should_receive(:enabled).and_return('true') @game = game end 1)

Re: [rspec-users] spec'ing view render partial collection, local variable not found

2007-10-05 Thread David Chelimsky
I meant the view code as well. On 10/5/07, Andrew WC Brown [EMAIL PROTECTED] wrote: As soon as I add a second key to the hash it gives me that error before do game = mock_model(Game, :name = 'The Battle for Blaze', :enabled = 'true') game.should_receive(:name).and_return('The Battle for

Re: [rspec-users] have_xml_tag

2007-10-05 Thread Shane Mingins
Prob should have mentioned that I am using 1.05 but have_tag just wraps assert_select as far as I am aware. On 6/10/2007, at 12:49 PM, Geoffrey Wiseman wrote: On 10/5/07, Shane Mingins [EMAIL PROTECTED] wrote: Hi Was just using have_tag on an xml response and found the problem outlined

Re: [rspec-users] spec'ing view render partial collection, local variable not found

2007-10-05 Thread Andrew WC Brown
before do game = mock_model(Game, :name = 'The Battle for Blaze', :enabled = 'true') puts game.name puts game.enabled game.should_receive(:name).and_return('The Battle for Blaze') game.should_receive(:enabled).and_return('true') @game = game end I still got the error but I saw in the

Re: [rspec-users] Easy AR association stubbing

2007-10-05 Thread Andrew WC Brown
Thanks I'll give it a try and praise you later. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] have_xml_tag

2007-10-05 Thread Geoffrey Wiseman
On 10/5/07, Shane Mingins [EMAIL PROTECTED] wrote: Prob should have mentioned that I am using 1.05 but have_tag just wraps assert_select as far as I am aware. I know nothing about the whys and wherefores, and haven't attempted to look at the code in this case, but on 1.0.8, have_tag and

Re: [rspec-users] Specs and Libs

2007-10-05 Thread Andrew WC Brown
AuthenticatedSystem library has tests already written for it. Just as Jim said you needn't write specs for it. But if you did want to write spec's for the AuthenticatedSystem then you'd create a directory inside the plugin directory with all the other directory and files pointing the paths to the

Re: [rspec-users] have_xml_tag

2007-10-05 Thread Andrew WC Brown
I didn't see any specific changes for have_tag though it could have just not been listed. I'd push for 1.0.9 because it has story runner which by the way is amazing On 10/5/07, Geoffrey Wiseman [EMAIL PROTECTED] wrote: On 10/5/07, Shane Mingins [EMAIL PROTECTED] wrote: Prob should have