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
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
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?
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
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
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
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
$ 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
**
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:
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
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
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
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
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
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,
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
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'
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,
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:
_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 =
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)
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
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
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
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
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
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
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
28 matches
Mail list logo