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
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
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
Since it's a plugin, then I would not spec it, and spec the files that use
it instead.
Jim Deville
On 10/4/07, Nathan Sutton <[EMAIL PROTECTED]> wrote:
>
> How would I go about writing specs for a lib, particularly one with
> all protected and private methods. I'm trying to spec the
> Authentica
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
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 th
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
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 B
On 10/5/07, Shane Mingins <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> Was just using have_tag on an xml response and found the problem outlined
> and resolved here
> http://weblog.jamisbuck.org/2007/1/4/assert_xml_select
>
> Just wondered if there is any support in rspec?
>
Really?
I ran into that with
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)
Spec:
_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
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 complaini
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, 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
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'
> No rhtml, rxml, rjs or delegate template found for /
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, Andrew WC Brown <[EMAIL PROTECTED]> wrote:
> 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',
> :s
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,
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 #<#:0x2f1154c>
> /Volumes/EXTERNAL/web/omenking.ca/vendor/pl
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 #<#:0x2f1154c>
/Volumes/EXTERNAL/web/omenking.ca/vendor/plugins/rspec_on_rails/lib/spec/rails/matchers/have_text.rb:12:in
`mat
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
> svn://rubyforge.org/var/svn/rs
On 10/5/07, Daniel Mantilla <[EMAIL PROTECTED]> wrote:
>
> 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/genera
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
svn://rubyforge.org/var/svn/rspec/tags/CURRENT/rspec_on_rails
>ruby script/generate rspec
After th
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 spe
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 "Sign
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
$ 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
** Exe
On 10/5/07, Geoffrey Wiseman <[EMAIL PROTECTED]> wrote:
> So, having gotten a story (i.e. Story Runner) working (runs in NetBeans and
> using 'ruby path/to/story.rb'), I'm looking to see how I'd integrate that
> with our build.
>
> Am I right in assuming that there's no Rake integration yet, or a r
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:
NoMethodError: undefined method `render_template' for
So, having gotten a story (i.e. Story Runner) working (runs in NetBeans and
using 'ruby path/to/story.rb'), I'm looking to see how I'd integrate that
with our build.
Am I right in assuming that there's no Rake integration yet, or a report? I
couldn't see any. As far as I can see, "rake spec" do
Pat,
Thanks for the reply. This helps a lot. It really is just one
iteration and so I will be placing this all in the same story. I guess I
was just over thinking it because I am used to breaking my specs up
often via different contexts. Thanks again,
Ben
Pat Maddox wrote:
> On 10/5/07, Ben M
On 10/5/07, Ben Mabey <[EMAIL PROTECTED]> wrote:
> Hi all,
> I have read Dan North's post 'Whats in a Story?'
> (http://dannorth.net/whats-in-a-story) but I am still having a hard time
> knowing when I should break requirements up into separate stories or
> keep them as scenarios. I am currently t
Hi all,
I have read Dan North's post 'Whats in a Story?'
(http://dannorth.net/whats-in-a-story) but I am still having a hard time
knowing when I should break requirements up into separate stories or
keep them as scenarios. I am currently trying to write a story
(stories) for the registration p
On 10/5/07, David Chelimsky <[EMAIL PROTECTED]> wrote:
> On 10/5/07, David Chelimsky <[EMAIL PROTECTED]> wrote:
> > On 10/5/07, Scott Taylor <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > > On Sep 11, 2007, at 2:37 PM, Geoffrey Wiseman wrote:
> > > On 9/5/07, David Chelimsky <[EMAIL PROTECTED]> wrote:
On 10/5/07, David Chelimsky <[EMAIL PROTECTED]> wrote:
> On 10/5/07, Scott Taylor <[EMAIL PROTECTED]> wrote:
> >
> >
> > 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(m
On 10/5/07, Scott Taylor <[EMAIL PROTECTED]> wrote:
>
>
> 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 Spe
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>
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 Behav
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
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 th
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 Development in Ruby with
> RSpec for the Pragmatic
I'm all over that like white on rice on a paper plate in a snowstorm.
Nate
On Oct 5, 2007, at 8: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?
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 th
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
Hi
Was just using have_tag on an xml response and found the problem
outlined and resolved here
http://weblog.jamisbuck.org/2007/1/4/assert_xml_select
Just wondered if there is any support in rspec?
Cheers
Shane
Shane Mingins
ELC Technologies (TM)
PO Box 247
Santa Barbara, CA 93102
Phone:
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 a
46 matches
Mail list logo