at 2:09 AM, David Chelimsky
[EMAIL PROTECTED] wrote:
On Jun 6, 2008, at 10:57 AM, Juanma Cervera wrote:
This was an error, but I thought it was corrected by D. Chelimsky.
That is correct - at least temporarily - there is a conflict with
how rspec and autotest output to a terminal that makes
On Jul 8, 2008, at 2:52 PM, Bart Zonneveld wrote:
On 8 jul 2008, at 21:43, David Chelimsky wrote:
On Jul 8, 2008, at 2:09 PM, Bart Zonneveld wrote:
On 10 jun 2008, at 07:05, Mikel Lindsaar wrote:
This was fixed up updating to trunk:
3b76fda..befd422 master - origin/master
Looks
On Jul 9, 2008, at 5:36 PM, Francis Hwang wrote:
... is there a way to do this? We have some REST-ish POSTs we'd like
to spec out. In the controller this gets accessed with
request.raw_post.to_s, is there a way to set this with rspec?
If you mean you want to set it in an example before the
On Jul 9, 2008, at 5:52 PM, Rick DeNatale wrote:
At work we've got a rather complex app with both specs and tests.
Our default rake task runs all our our tests and specs. We've also
got separate rake tasks to run groups of tests and specs in the
various subdirectories. The default task
On 7/11/08, Piotr Wlodarek [EMAIL PROTECTED] wrote:
How to stub a method for multiple calls?
The calls are done in a loop.
I expect:
@agent.stub!( :submit ).multiple_times.and_return( @account_details_page
)
..to stub submit method forever (any number of calls).
Stubs will do this
On Sun, Jul 13, 2008 at 9:32 AM, Pat Maddox [EMAIL PROTECTED] wrote:
On Sun, Jul 13, 2008 at 9:49 AM, Sven Fuchs [EMAIL PROTECTED] wrote:
I've been wondering how to expect arbitrary methods being called in a
particular order. The RSpec documentation for expecting method calls on mock
objects
On Sun, Jul 13, 2008 at 4:50 PM, Charles Grindel [EMAIL PROTECTED] wrote:
Hi,
Thanks for the info, Luis. I am glad that they fixed the calling a batch
file issue. I have had to handle this myself in several different
situations.
I do have one additional question. It sounds like your
On Tue, Jul 15, 2008 at 4:17 AM, Piotr Wlodarek [EMAIL PROTECTED] wrote:
For the base class, it seems reasonable to specify public API with
RSpec.
However, since we deal with a base class, methods are often empty (put
there just to show the API).
The spec cannot be run against the base
On Tue, Jul 15, 2008 at 4:59 AM, Piotr Wlodarek [EMAIL PROTECTED] wrote:
At first it seems obvious: one should specify behaviour, not
implementation.
However, there may be a tremendous overhead and duplication with such
approach.
Let's assume:
def a
# lot's of business logic
end
deb
On Jul 15, 2008, at 8:22 AM, Piotr Wlodarek [EMAIL PROTECTED]
wrote:
However, since we deal with a base class, methods are often empty
(put there just to show the API).
What's the point of that? This isn't Java.
Documentation for developers of derived classes.
Exactly. In all of my
On Thu, Jul 17, 2008 at 6:18 AM, Jonathan Leighton
[EMAIL PROTECTED] wrote:
I have a Rails spec where I want to check that the action_name is either
create or update. I can think of a couple of ways to do it, but none
of them reads fantastically well:
1. [create, update].should
On Jul 17, 2008, at 7:40 AM, Jonathan Leighton wrote:
On Thu, 2008-07-17 at 07:28 -0500, David Chelimsky wrote:
I'm wondering why the examples aren't more specific though. Why is it
OK that the action could be one of two possibilities given a specific
set of givens?
Ok well I lied a little
On Thu, Jul 17, 2008 at 8:13 PM, Britt Mileshosky
[EMAIL PROTECTED] wrote:
It's been suggested that instead of doing
-- organization.events.find(params[:id])
that you should be writing
-- organization.get_event( params[:id] )
and the orgs 'get_event' method should look like
-- def
On Fri, Jul 18, 2008 at 3:00 AM, Siemen Baader [EMAIL PROTECTED] wrote:
Hi list!
I get some not-so-nice output from rspec-rails when using the -f specdoc
option. It happens both with the spec command and the rake task and on a
prestine, newly generated rails app.
I'm using rspec
On Fri, Jul 18, 2008 at 5:56 AM, David Salgado [EMAIL PROTECTED] wrote:
Hi All
I'm using test/unit on a project, at the client's insistence, but I'm
also using rspec stories for integration testing. I notice that as
soon as I install rspec and rspec-rails plugins, autotest no longer
finds my
On Tue, Jul 22, 2008 at 11:26 AM, Britt Mileshosky
[EMAIL PROTECTED] wrote:
So lastnight I was writing a fake controller to test some before filter
action.
I found myself writing this line of code that I thought was funny ... maybe
its
a subtle indication i've been programming to much
On Tue, Jul 22, 2008 at 9:37 PM, Ry An [EMAIL PROTECTED] wrote:
Im having a hard time with a rspec controller test im writting, I need
to stub! the User.find call twice once to return the owning user and
once to return the viewing user. however when I attempt
On Thu, Jul 24, 2008 at 7:32 AM, Jonathan Leighton
[EMAIL PROTECTED] wrote:
Hiya,
I am trying to use the HTML Story Formatter in conjunction with
CruiseControl.rb. I have got it outputting the stories to a file, but I
notice there are CSS and JS files linked in the head, which don't appear
On Fri, Jul 25, 2008 at 8:15 AM, David Chelimsky [EMAIL PROTECTED] wrote:
On Fri, Jul 25, 2008 at 7:57 AM, David Chelimsky [EMAIL PROTECTED] wrote:
On Fri, Jul 25, 2008 at 12:34 AM, Matt Lins [EMAIL PROTECTED] wrote:
On Fri, Jul 25, 2008 at 12:25 AM, Scott Taylor
[EMAIL PROTECTED] wrote
On Fri, Jul 25, 2008 at 8:44 AM, Matt Lins [EMAIL PROTECTED] wrote:
On Fri, Jul 25, 2008 at 8:40 AM, David Chelimsky [EMAIL PROTECTED] wrote:
On Fri, Jul 25, 2008 at 8:15 AM, David Chelimsky [EMAIL PROTECTED] wrote:
On Fri, Jul 25, 2008 at 7:57 AM, David Chelimsky [EMAIL PROTECTED] wrote
On Fri, Jul 25, 2008 at 8:49 AM, David Chelimsky [EMAIL PROTECTED] wrote:
On Fri, Jul 25, 2008 at 8:44 AM, Matt Lins [EMAIL PROTECTED] wrote:
On Fri, Jul 25, 2008 at 8:40 AM, David Chelimsky [EMAIL PROTECTED] wrote:
On Fri, Jul 25, 2008 at 8:15 AM, David Chelimsky [EMAIL PROTECTED] wrote
On Sun, Jul 27, 2008 at 2:52 PM, john [EMAIL PROTECTED] wrote:
Hi everyone,
I was curious if anyone out there had any examples or advice for running
specs on system status.
I would like to analyze unix utilities such as ps -aux|grep dispatch,
uptime, top (ruby processes), proper log activity,
On Mon, Jul 28, 2008 at 5:10 PM, Evan Dorn [EMAIL PROTECTED] wrote:
Sorry, I'd put this in a ZenTest forum (as opposed to RSpec), except
that I can't find one.
I find it frustrating that autotest keeps running when it finds failing
tests - but it quits back to the command line whenever a test
On Sat, Aug 2, 2008 at 6:49 PM, Luis Lavena [EMAIL PROTECTED] wrote:
Hello list,
I'm trying to setup some shared specs to describe a CRUD controller
and want to reuse the logic in it.
I'm basing most of the examples in latest David's post about it [1]
The thing is that looking at the
On Tue, Aug 5, 2008 at 12:19 PM, Matt Wynne [EMAIL PROTECTED] wrote:
Hi,
We have a biggish rails app with a bunch of 'legacy' Test::Unit tests,
but we're moving over to rspec for all our new work.
We're going to be carrying these legacy tests around for a good while
though, so they need to
On Sat, Aug 2, 2008 at 3:43 PM, Luis Lavena [EMAIL PROTECTED] wrote:
On Sat, Aug 2, 2008 at 9:04 PM, Mark Wilden [EMAIL PROTECTED] wrote:
spec_server is one of the hidden gems of the RSpec world. It's not
completely a slam-dunk to use, and I know people who don't use it because of
various
On Tue, Aug 5, 2008 at 11:47 PM, Ian Dees [EMAIL PROTECTED] wrote:
Hi, all.
The publishers have just thrown the switch to make my new book,
Scripted GUI Testing With Ruby, available for purchase in both PDF
and analog.
Congratulations Ian!
http://www.pragprog.com/titles/idgtr
The book
On Wed, Aug 6, 2008 at 7:24 AM, Jonathan Linowes
[EMAIL PROTECTED] wrote:
Ian, sounds like your espresso machine needs some gui testing...
Hmmm ... gui espresso? I prefer mine a bit more watiry.
:)
On Aug 6, 2008, at 12:47 AM, Ian Dees wrote:
Hi, all.
The publishers have just thrown the
On Wed, Aug 6, 2008 at 8:57 AM, Redd Vinylene [EMAIL PROTECTED] wrote:
Hello everybody:)
I'm new to this, but how should I go about consolidating
old_project/test/* with new_project/spec/*?
Here is the contents of my old_project/test/* -- http://pastie.org/248453
Would I have to rewrite
On Sun, Aug 10, 2008 at 11:03 AM, Jesse Crockett [EMAIL PROTECTED] wrote:
Hello, I'm working on a feature of insoshi to limit daily connection
requests, using a boolean and integer value set by the admin. The
feature works fine, but causes 11 failures in `rake spec', not to
mention the two or
On Mon, Aug 11, 2008 at 2:05 AM, Yury Kotlyarov [EMAIL PROTECTED] wrote:
Hi!
I have a view:
% restrict_to 'admin' do %
div
%= render :partial = 'detail' %
/div
% end %
What's the best way to spec view in this case - I just want to yield block
in restrict_to call.
Here's one way:
On Mon, Aug 11, 2008 at 2:49 PM, John Mark [EMAIL PROTECTED] wrote:
David Chelimsky wrote:
On Mon, Aug 11, 2008 at 1:47 PM, John Mark [EMAIL PROTECTED] wrote:
Sorry that was a typo
Its actually stub! in my code
The original example doesn't seem to do anything:
it should find products
On Tue, Aug 12, 2008 at 1:22 PM, Ben Fyvie [EMAIL PROTECTED] wrote:
We are trying to automate the running of our rspec tests for our Rails app
on a build server using Capistrano. The problem is that Capistrano seems to
think that the command called to run the model tests failed when in fact I
On Thu, Aug 14, 2008 at 4:47 AM, aidy lewis [EMAIL PROTECTED] wrote:
Hi,
I am currently using the story runner HTML
ruby aut.rb -fh:C:\C:\rspec_reports\aut.htm
Is it possible to also produce the traditional Rspec HTML reports
through Story Runner as well
There is no formatter for that,
On Aug 14, 2008, at 1:12 PM, [EMAIL PROTECTED] wrote:
I have checked : I am in the RAILS_ROOT/spec/controllers directory
I have tried with the second solution, but the get and post methodes
remain undefined.
Could it be a version compatibility problem ?
I'm using rails 2.1.0, and the REL_1_1_3
On Fri, Aug 15, 2008 at 3:59 AM, Martin Bernd Schmeil
[EMAIL PROTECTED] wrote:
Any news on this?
We've enlisted the help of three more authors: Dan North, Bryan
Helmkamp and Zach Dennis. Dan is going to contribute a BDD overview.
Bryan and Zach are working on the section on using RSpec with
On Fri, Aug 15, 2008 at 5:28 AM, Matt Wynne [EMAIL PROTECTED] wrote:
Hi TDD Fans,
I'm pretty new to Ruby / RSpec / Rails but not to TDD.
This is more of a general 'how do you do good design in a rails app'
question than an rspec-specific question. I'm asking it here because I know
this list
On Aug 15, 2008, at 6:46 AM, Matt Wynne [EMAIL PROTECTED] wrote:
On 15 Aug 2008, at 12:25, David Chelimsky wrote:
Hey Matt - welcome!
The paginate() method lives on the model class, so there's nothing
stopping you from wrapping those calls in methods on the model,
slinging around the params
On Sat, Aug 16, 2008 at 4:25 PM, Chuck Remes [EMAIL PROTECTED] wrote:
I took a look at the web site but did not see any issue/bug tracker
http://rspec.lighthouseapp.com
I forwarded this there: http://rspec.lighthouseapp.com/projects/5645/tickets/496
Will respond in that ticket.
Cheers,
David
On Mon, Aug 18, 2008 at 8:20 AM, Matt Wynne [EMAIL PROTECTED] wrote:
Nope, despite my efforts to repro this earlier, it's started happening
again.
Check out the output from autotest:
/usr/local/bin/ruby -S script/spec -O spec/spec.opts
On Mon, Aug 18, 2008 at 8:39 AM, Matt Wynne [EMAIL PROTECTED] wrote:
On 18 Aug 2008, at 14:27, David Chelimsky wrote:
Check out the output from autotest:
/usr/local/bin/ruby -S script/spec -O spec/spec.opts
/Users/matt/Documents/projects/songkick/skweb/app/controllers/admin
On Mon, Aug 18, 2008 at 9:53 AM, Andy Orahood [EMAIL PROTECTED] wrote:
David Chelimsky wrote:
On Jun 16, 2008, at 6:37 AM, Juanma Cervera wrote:
When can we expect it to arrive?
Assuming no set-backs, beta by mid-summer.
Cheers,
David
Oh I hope so. Is the beta close?
Depends
On Mon, Aug 18, 2008 at 2:46 PM, Jim Morris [EMAIL PROTECTED] wrote:
aslak hellesoy wrote:
The RSpec Story runner is likely to be deprecated in favour of the new
feature runner (temporarily called Cucumber).
http://www.nabble.com/-ANN--Cucumber-td18876816.html
This is REALLY bad news!! I
On Tue, Aug 19, 2008 at 6:18 AM, Matt Wynne [EMAIL PROTECTED] wrote:
Sigh. Sorry to ask such a dumb question, but I've hit one of those walls...
I'm testing a view which uses the params[] hash directly. (Aside: is this
bad form?)
How the heckers do I set up the params hash in my test?
I've
.
BTW I am using rpsec 1.1.4 and rails 2.1.0. Sorry for not being
elaborate in my prev post.
Thanks,
SatishG.
David Chelimsky wrote:
On Aug 19, 2008, at 1:05 PM, Satish Gunnu [EMAIL PROTECTED] wrote:
Hi,
I am new to rspec and started implementing it on my project
yesterday.
I have
Done
On Tue, Aug 19, 2008 at 4:09 PM, Mark Wilden [EMAIL PROTECTED] wrote:
http://rspec.rubyforge.org/documentation/rails/install.html
I sure wish someone would take that page down - it's caused me more than my
share of grief.
///ark
___
On Tue, Aug 19, 2008 at 5:17 PM, RSL ___ [EMAIL PROTECTED] wrote:
Hopefully someone here can help me figure out why the ERB:
% form_for(@fund, :url = {:host = PRIVATE_HOST}, :html = {:class
= 'fund', :multipart = true}) do |f| %
raises an error in my specs:
No route matches
Please post the code example.
On Wed, Aug 20, 2008 at 8:09 AM, RSL ___ [EMAIL PROTECTED] wrote:
Thanks, David but unfortunately for me this is happening on 2.0.2 Rails,
with rspec/rspec-rails, from about a month and a half ago. Must be
something else. Here's hoping someone else has run across
On Wed, Aug 20, 2008 at 9:04 AM, Jonathan Linowes
[EMAIL PROTECTED] wrote:
On Aug 20, 2008, at 2:20 AM, Aslak Hellesøy wrote:
(In Cucumber it's Feature, not Story)
no offense, but while you're being picky about names, I dont see too much
difference between 'story' and 'feature'
I see them
On Tue, Aug 19, 2008 at 7:09 AM, aidy lewis [EMAIL PROTECTED] wrote:
Hi David,
2008/8/18 David Chelimsky [EMAIL PROTECTED]:
Those options don't make it to the runner, which reads the actual
command line (ARGV).
What I typically do is load up runner files that look like this:
# stories
On Thu, Aug 21, 2008 at 2:25 PM, Mark Wilden [EMAIL PROTECTED] wrote:
We ran into a situation today where running 'rake spec' on one machine
produced different results than when running on a different machine. My
reasoned hunch is that the tests were run in a different order, due to the
On Thu, Aug 21, 2008 at 4:29 PM, Mark Wilden [EMAIL PROTECTED] wrote:
On Thu, Aug 21, 2008 at 12:51 PM, David Chelimsky [EMAIL PROTECTED]
wrote:
My personal feeling is that the code examples should be able to run in
any arbitrary order and still pass (no dependencies between examples)
I
There are a number of changes to action pack recently that are
incompatible with rspec. Please report these to lighthouse.
Thanks,
David
On Sat, Aug 23, 2008 at 6:12 AM, Sven Fuchs [EMAIL PROTECTED] wrote:
Trying to port an existing app to current Rails edge I've seen similar
things yesterday.
On Sat, Aug 23, 2008 at 12:44 PM, John Reilly [EMAIL PROTECTED] wrote:
On Aug 23, 9:28 am, David Chelimsky [EMAIL PROTECTED] wrote:
There are a number of changes to action pack recently that are
incompatible with rspec. Please report these to lighthouse.
I'm assuming you mean rspec's
On Sun, Aug 24, 2008 at 9:44 AM, Muhammad Ichsan [EMAIL PROTECTED] wrote:
Dear All,
Before I know spec'ing, I've been practicing testing using JUnit. I
remember that once Kent Beck said (if I'm not mistaken) that we should
not test exhaustively. Instead, we should test until our doubt in the
On Fri, Aug 22, 2008 at 12:53 PM, Jonathan Linowes
[EMAIL PROTECTED] wrote:
On Aug 20, 2008, at 10:20 AM, David Chelimsky wrote:
I see them as very different.
User Stories are inputs to a development process and Features are the
outputs.
I decided to churn on this for a few days before
On Mon, Aug 25, 2008 at 1:11 PM, Claudio Poli [EMAIL PROTECTED] wrote:
hi everyone,
does anyone experience this problem?
Hi Claudio,
There are a few issues at lighthouse related to running rcov:
patchlevel 22) [i686-darwin9.3.0] but not sure how to fix it.
Claudio
Il giorno 25/ago/08, alle ore 20:15, David Chelimsky ha scritto:
On Mon, Aug 25, 2008 at 1:11 PM, Claudio Poli [EMAIL PROTECTED]
wrote:
hi everyone,
does anyone experience this problem?
Hi Claudio,
There are a few issues
On Mon, Aug 25, 2008 at 3:02 PM, Zach Dennis [EMAIL PROTECTED] wrote:
On Mon, Aug 25, 2008 at 2:50 PM, Nick Hoffman [EMAIL PROTECTED] wrote:
On 2008-08-25, at 13:29, Zach Dennis wrote:
I might do something like the following...
describe Property, email validations do
[[EMAIL PROTECTED],
On Tue, Aug 26, 2008 at 1:34 PM, Matt Wynne [EMAIL PROTECTED] wrote:
Hi all,
I have what I thought was quite a simple requirement but something to do
with the way ActiveRecord's associations work is making it quite puzzling.
I guess I can sum it up with this failing test:
On Tue, Aug 26, 2008 at 8:51 PM, Mark Wilden [EMAIL PROTECTED] wrote:
On Tue, Aug 26, 2008 at 5:01 PM, David Chelimsky [EMAIL PROTECTED]
wrote:
@target_comment = stub_model(Target)
@target.stub!(:comments).and_return([EMAIL PROTECTED])
That's what we do - what would the drawbacks be?
It's
On Wed, Aug 27, 2008 at 7:22 AM, Zach Dennis [EMAIL PROTECTED] wrote:
On Wed, Aug 27, 2008 at 3:34 AM, Matt Wynne [EMAIL PROTECTED] wrote:
Here's the basic deal:
Model.find(1).equal?(Model.find(1))
= false
AR does not cache objects, so when you ask it for what you *think*
might the same
On Wed, Aug 27, 2008 at 4:42 AM, aa aa [EMAIL PROTECTED] wrote:
Hi, have my stories running fine here on my dev machine but they blow up
on the build machine. Rspec and Rspec-rails are installed as plugins
When i attempt to run
ruby stories/all.rb
on the dev server i get this error
On Wed, Aug 27, 2008 at 2:34 AM, Matt Wynne [EMAIL PROTECTED] wrote:
Here's the basic deal:
Model.find(1).equal?(Model.find(1))
= false
AR does not cache objects, so when you ask it for what you *think*
might the same object twice, you get different ones.
I thought as much... So does AR
On Wed, Aug 27, 2008 at 1:03 PM, Nick Hoffman [EMAIL PROTECTED] wrote:
On 2008-08-27, at 12:57, Rahoul Baruah wrote:
For this, trivial, example, I find that far too verbose.
The specification says if it is less than 2 characters then invalid
and if it is more than 128 characters then
On Wed, Aug 27, 2008 at 2:38 PM, Nick Hoffman [EMAIL PROTECTED] wrote:
If a helper method can be used for multiple model specs, obviously it should
not be placed within a specific model's spec helper file. Is there a
recommended file in which to put such a method? Maybe
On Wed, Aug 27, 2008 at 2:24 PM, Nick Hoffman [EMAIL PROTECTED] wrote:
On 2008-08-27, at 14:46, David Chelimsky wrote:
If you want to (not necessarily advising this, but I've seen it done) you
can do this:
['!','(',')',''].each do |char|
it can't have #{char} do
...
end
end
On Thu, Aug 28, 2008 at 8:22 AM, aidy lewis [EMAIL PROTECTED] wrote:
Hi,
I think the scenario based way of defining acceptance tests is akin to
scenarios in use-cases.
In use-cases we can have a happy path with extends for error conditions etc.
Should I create extra scenarios for my error
, Aug 28, 2008 at 12:41 PM, Nick Hoffman [EMAIL PROTECTED] wrote:
On 2008-08-28, at 08:02, David Chelimsky wrote:
On Wed, Aug 27, 2008 at 2:38 PM, Nick Hoffman [EMAIL PROTECTED] wrote:
If a helper method can be used for multiple model specs, obviously it
should
not be placed within a specific
.
Cheers,
David
On Fri, Aug 29, 2008 at 9:53 AM, Jack Sprat [EMAIL PROTECTED] wrote:
David Chelimsky wrote:
On Jan 2, 2008 8:05 PM, Bart Zonneveld [EMAIL PROTECTED] wrote:
Curious, are the Stories going to be part of the rspec book?
Yep.
Eagerly waiting on that one...
Us too!
David
On Fri, Aug 29, 2008 at 9:03 AM, Nick Hoffman [EMAIL PROTECTED] wrote:
On 2008-08-29, at 04:51, Joseph Wilk wrote:
I started using a set of methods to deal with this problem from code in
the RadiantCMS(http://radiantcms.org/) project.
http://gist.github.com/7936
I stopped using it after a
On Fri, Aug 29, 2008 at 1:37 PM, Bart Zonneveld [EMAIL PROTECTED] wrote:
Hey list,
This is a kinda quirky
It's only quirky-ish.
question for this list, but I do think it belongs
here. I'm currently writing an app with users with different roles. Roles
are sequentially so to speak, so role
On Fri, Aug 29, 2008 at 5:57 PM, Rick DeNatale [EMAIL PROTECTED] wrote:
On Fri, Aug 29, 2008 at 3:14 PM, Anthony Green [EMAIL PROTECTED] wrote:
If this has any sway at all... I've bought every (ruby/rails) beta book
from
pragprog and manning and nearly always followed it up with a hard copy
On Fri, Aug 29, 2008 at 6:22 PM, Ben Mabey [EMAIL PROTECTED] wrote:
Hi all,
Where can we add tickets for Cucumber? While trying to migrate a
current project I ran into a snag.. specially that cucumber does not
support multi-line steps like the edge rspec story runner (which makes
sense since
On Sun, Aug 31, 2008 at 6:56 AM, Matt Wynne [EMAIL PROTECTED] wrote:
On 30 Aug 2008, at 19:31, Scott Taylor wrote:
On Aug 30, 2008, at 2:12 PM, Tero Tilus wrote:
2008-08-30 17:02, Matt Wynne:
RuBehave
Now _that's_ cool! I love it!
Personally, I always liked the rbehave / rspec combo,
On Fri, Aug 29, 2008 at 1:37 PM, Dan North [EMAIL PROTECTED] wrote:
At the risk of being a bit controversial...
2008/8/24 David Chelimsky [EMAIL PROTECTED]
[...]
Sadly, spec has just as much baggage, if not more, as test does.
These days we're calling these things code examples, (tongue
On Sun, Aug 31, 2008 at 9:02 AM, Jonathan Linowes
[EMAIL PROTECTED] wrote:
On Aug 31, 2008, at 9:39 AM, David Chelimsky wrote:
Agreed. Stories and/or Features seem to be more about organization and
communication. Scenarios drive code development.
+1
I also like to organize them
On Sun, Aug 31, 2008 at 2:38 PM, Chuck Remes [EMAIL PROTECTED] wrote:
On Aug 31, 2008, at 12:42 PM, Scott Taylor wrote:
On Aug 31, 2008, at 10:36 AM, Chuck Remes wrote:
I looked through the mailing list archive but unfortunately my search
terms are too generic (spec and require...).
I am
On Mon, Sep 1, 2008 at 12:08 PM, Matt Wynne [EMAIL PROTECTED] wrote:
Am taking cucumber for a first spin today - first impressions are good.
How do I go about running a single feature or scenario so I don't have to
run the whole lot when I'm working on a particular one?
There's no support for
On Mon, Sep 1, 2008 at 3:30 PM, aslak hellesoy [EMAIL PROTECTED] wrote:
On Mon, Sep 1, 2008 at 9:45 PM, David Chelimsky [EMAIL PROTECTED] wrote:
On Mon, Sep 1, 2008 at 12:08 PM, Matt Wynne [EMAIL PROTECTED] wrote:
Am taking cucumber for a first spin today - first impressions are good.
How do I
On Mon, Sep 1, 2008 at 3:31 PM, aslak hellesoy [EMAIL PROTECTED] wrote:
On Mon, Sep 1, 2008 at 9:25 PM, Priit Tamboom [EMAIL PROTECTED] wrote:
Hi!
I'm new to Cucumber/Story Runner, but not so new to Rspec in general.
I googled a lot before
posting :-)
I would like to mock openid consumer
On Wed, Sep 3, 2008 at 4:52 AM, Keith McDonnell [EMAIL PROTECTED] wrote:
Hi all,
Are fixtures not loaded instantiated in the before block? I thought they
/should/ be :) eg
before(:all) do
Try before(:each) instead.
Read the warning at the bottom of
On Wed, Sep 3, 2008 at 6:56 AM, Bart Zonneveld [EMAIL PROTECTED] wrote:
Hey list,
I found myself trying to verify there are some non-checked checkboxes in a
template today, and am kinda stumped how to do it :).
A checked checkbox is easy,
have_tag('input[type=checkbox][checked=checked]).
On Wed, Sep 3, 2008 at 8:38 AM, Matt Wynne [EMAIL PROTECTED] wrote:
On 3 Sep 2008, at 14:31, Bart Zonneveld wrote:
On 3 sep 2008, at 15:28, David Chelimsky wrote:
On Wed, Sep 3, 2008 at 6:56 AM, Bart Zonneveld [EMAIL PROTECTED]
wrote:
Hey list,
I found myself trying to verify
On Thu, Sep 4, 2008 at 8:42 AM, Matt Wynne [EMAIL PROTECTED] wrote:
I want to spec that a controller uses a particular layout
how do I do that?
Depends on what else is going on, but this is the simplest situation:
controller.expect_render(:layout = 'special_layout')
get :some_action
On Fri, Sep 5, 2008 at 4:44 PM, Nick Hoffman [EMAIL PROTECTED] wrote:
So, after reading all of those fantastic emails discussing testing behaviour
vs state, I decided to try mocking and stubbing a couple of methods. I think
I did well on my first one, but I'm not sure what the best way to spec
On Fri, Sep 5, 2008 at 10:48 PM, Scott Taylor
[EMAIL PROTECTED] wrote:
On Sep 5, 2008, at 10:18 PM, Craig P Jolicoeur wrote:
I'm having some trouble trying to spec some methods in my Rails
application controller.
I'm new to rspec converting over from straight test::unit.
Here is the
On Sat, Sep 6, 2008 at 8:55 AM, Craig Jolicoeur [EMAIL PROTECTED] wrote:
First off - should_receive *is* a test - why would you write a test in
the setup?
Not sure what you mean by that. I'm not writing a test in the setup
routine.
should_receive is an expectation which could pass or fail. I
On Sat, Sep 6, 2008 at 9:15 AM, Craig Jolicoeur [EMAIL PROTECTED] wrote:
Thanks David.
I changed to using get :render_403 and it worked. Well, worked after
I added in those routes to my routes.rb file.
I dont have the default routes for /:controller/:action/:id so it was
failing and I dont
On Sat, Sep 6, 2008 at 2:32 PM, Nick Hoffman [EMAIL PROTECTED] wrote:
On 2008-09-05, at 18:22, Jonathan Linowes wrote:
On Sep 5, 2008, at 5:44 PM, Nick Hoffman wrote:
Property.stub!(:find).and_return mock_property1, mock_property2
try
Property.stub!(:find).and_return( [mock_property1,
On Sat, Sep 6, 2008 at 4:48 PM, Nick Hoffman [EMAIL PROTECTED] wrote:
On 2008-09-06, at 15:58, David Chelimsky wrote:
Well, without changing the underlying semantics, you can clean up the
syntax a bit like this:
mock_property1 = stub('property', :address = '400 Bloor Street',
:latitude
On Sat, Sep 6, 2008 at 5:25 PM, Mark Wilden [EMAIL PROTECTED] wrote:
203
204 map.should_receive(:add_marker).with mock_property1.address,
mock_property1.latitude, mock_property1.longitude, marker1_contents
205 map.should_receive(:add_marker).with mock_property2.address,
On Sat, Sep 6, 2008 at 9:57 PM, David Chelimsky [EMAIL PROTECTED] wrote:
On Sat, Sep 6, 2008 at 4:48 PM, Nick Hoffman [EMAIL PROTECTED] wrote:
On 2008-09-06, at 15:58, David Chelimsky wrote:
Well, without changing the underlying semantics, you can clean up the
syntax a bit like
On Mon, Sep 8, 2008 at 7:49 PM, Eric Harris-Braun [EMAIL PROTECTED] wrote:
Hi folks,
I'm hoping for a bit of help on best-practices for skipping a
before_filter when running a particular step. Specifically the
authentication filter. What happens is that the post (see code below)
returns a
On Mon, Sep 8, 2008 at 9:47 PM, Jonathan Linowes
[EMAIL PROTECTED] wrote:
On Sep 8, 2008, at 8:49 PM, Eric Harris-Braun wrote:
Hi folks,
I'm hoping for a bit of help on best-practices for skipping a
before_filter when running a particular step. Specifically the
authentication filter.
On Mon, Sep 8, 2008 at 10:49 PM, Eric Harris-Braun [EMAIL PROTECTED] wrote:
Thanks David for the very detailed response.
I see what you mean about why this should be hard to do. In fact
perhaps what I should do instead is simply specify the user-login part
in my story instead of skipping it.
On Tue, Sep 9, 2008 at 8:34 AM, Ashley Moran
[EMAIL PROTECTED] wrote:
On 9 Sep 2008, at 13:28, Dan North wrote:
I know a while back Google used to request python skills when they were
hiring java folks. They didn't actually need python to do their job - it
just meant they attracted the kind
Please post bugs to http://rspec.lighthouseapp.com.
Thanks,
David
On Tue, Sep 9, 2008 at 11:58 AM, aidy lewis [EMAIL PROTECTED] wrote:
Hi,
If a backslash is put into a story runner scenario
Scenario: Message is sent
Given an order has been created
When I goto the purchased screen
Have you tried?
On Tue, Sep 9, 2008 at 12:01 PM, Matt Wynne [EMAIL PROTECTED] wrote:
I love the way I can throw a call to pending() in the top of an unfinished
RSpec example and stop it from failing the build.
Is there a similar way to do such a thing with good ole' cucumber?
cheers,
Matt
On 9. sep.. 2008, at 19.05, David Chelimsky [EMAIL PROTECTED] wrote:
Have you tried?
On Tue, Sep 9, 2008 at 12:01 PM, Matt Wynne [EMAIL PROTECTED] wrote:
I love the way I can throw a call to pending() in the top of an
unfinished
RSpec example and stop it from failing the build
701 - 800 of 2985 matches
Mail list logo