ime and not
sequentially. I can't see how to stub a method to yield sequential
results so I can spec the behavior for different scenarios of
similarities between subsequent results. Is it possible to do this?
Any help would be much appreciated
Cheers
Rupert
___
On 12 Aug 2007, at 14:38, David Chelimsky wrote:
> On 8/12/07, rupert <[EMAIL PROTECTED]> wrote:
>> I've just found myself stuck trying to rspec something so am hoping
>> someone more knowledgable can help.
>>
>> I have a Connector class which has a class m
vior driven approach be that
you would test the enumerable behavior you wish the class to exhibit
rather than the implementation of enabling this behavior by including
the enumerable module.
Cheers
Rupert
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
what's in the create method of the controller?? you've only given the
contents of the new method - and without knowing what you want it to
do it's hard to know what will work.
Assuming it's the normal
def create
@ticket = Ticket.new(params(:ticket])
if @ticket.save
etc etc
end
the
of sense. That 'new' word threw me off.
My create method is slightly more complex and I'm not sure how to
spec it.
def create
@user = User.find(params[:user_id])
@ticket = @ user.tickets.build(params[:ticket])
if @ticket.save
redirect_to tickets_path
else
plus for a rails app that uses rspec, there's the caboose sample app:
http://blog.caboo.se/pages/sample-rails-application
On 26 Aug 2007, at 11:24, Michael Klishin wrote:
> RSpec itself is a nice example of pretty large open source project
> that
> uses RSpec for testing ;)
>
> It's a general
amework in favor of using Mocha
> (or any other framework one might want to plug in?).
The idea has been banded around on the dev list recently, see.
http://www.nabble.com/mock-framework-tf4312137.html#a12276473
for the discussion
Cheers
Rupert
__
On 1 Sep 2007, at 10:04, Tom Stuart wrote:
> On 1 Sep 2007, at 09:31, rupert wrote:
>>> Are we planning on dumping the mock framework in favor of using
>>> Mocha
>> The idea has been banded around on the dev list recently
>
> This makes me sad, because it mean
uld take the code from
http://pastie.caboo.se/74249
and paste it into a file called (say) routes.rake in your lib/tasks
directory then run rake routes to get a listing of all the routes and
their mappings in your terminal window. This will show you how the
controllers, actions and paramete
On 1 Sep 2007, at 18:16, Andrew WC Brown wrote:
> My question is what would you recommend for Mocking?
>
> Mocha or FlexMock?
Personally, I've not got a clue as all I've used to date is the rspec
mocking framework. I've had a quick look at Mocha and it seems
pretty good, but haven't looked
On 14 Oct 2007, at 08:28, Mikel Lindsaar wrote:
> On 8/13/07, rupert <[EMAIL PROTECTED]> wrote:
>> On 12 Aug 2007, at 14:38, David Chelimsky wrote:
>>>> However, what I actually need to do is check each result that is
>>>> yielded by the Connector.e
ave to pass form builders around. This
won't be practical though if you are using multiple partials for your
forms fields.
Rupert
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
pecs using rcov so I can get a picture of overall coverage for
my cucumber stories and rspec specs after they all have run (rather
than separately).
Should such a thing be possible and does anyone have a rake ask that
does this - failing that any pointers muchly appreciated.
Than
> thats pretty much what I thought, I'll give it a push around and e-
> mail back the results
cool - good luck ...I'm off to bed as it's 1am here in the UK but I'm
sure one of the useful chaps round here 'll help you out with any probs
btw, I just noticed I've put @ticket_params = {} in the be
've not done or done wrong, but I
can't think what
Cheers
Rupert
--
ry_spec.rb" "spec/spec/story/world_spec.rb"
"spec/spec/translator_spec.rb" --format html:../doc/output/report.html
--backtrace
On 25/02/2008, David Chelimsky <[EMAIL PROTECTED]> wrote:
> On Mon, Feb 25, 2008 at 9:01 AM, Rupert Voelcker <[EMAIL PROTECTED]> wrote:
> > Have been having some probs getting the pre-commit to run so help
> > would be appreciated (then I can add some specs to my pa
expired
2)
Timeout::Error in 'script/spec_server file without TextMate bundle runs a spec'
execution expired
Finished in 24.298229 seconds
332 examples, 2 failures, 3 pending
rake aborted!
ERROR while running rake: rake spec:plugins:rspec_on_rails --trace
/Users/rupert/stuff/downlo
17 matches
Mail list logo