Displaying 20 results from an estimated 40000 matches similar to: "test - ignore"
2008 Mar 11
2
for a beginner - good rspec examples?
I''m learning to use rspec and I want to see some good examples.
Any recommendations of open source projects that demonstrate the use
of rspec?
So far I''ve found:
1) the Caboose sample app (http://sample.caboo.se/)
2) the Altered Beast forums app (http://beast.caboo.se/forums/1/topics/4650
)
Any others come to mind?
I''m especially interested in seeing
2008 Jun 11
3
help with test design
I''m having trouble figuring out how to drive the design of a class.
I''m hoping I can get a hint or two from the more experienced BDDers on
this list.
I''m writing an adapter class that sits between a 3rd party library and
my business logic. I would like to extract some information from
objects available from the 3rd party lib and covert them into ruby
objects.
2010 Oct 06
2
rspec2 observations
Just a few observations now that I have completed the upgrade from RSpec-1 to RSpec-2.
1. In my project (2800 examples across about 40 files), MRI 1.9.2-p0 takes roughly 3 times longer to complete the spec run. Runtimes grew from 2.2s (rspec 1.3.0) to 6.1s (2.0.0.rc).
2. Rubinius 1.1.0 runs RSpec-2 without error.
3. JRuby 1.5.1 runs RSpec-2 without error.
4. Both Rubinius and JRuby print a
2006 Jul 27
7
WebService
Hi all!
how do I make a WebService using rails?
thaks !
--
Cordialmente,
Carlos J?nior <junior@boanoitebh.com>
(31) 9244-6543
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060727/f52d1e1c/attachment.html
2006 Aug 07
9
[OT] Rails is built into OS X 10.5
This coming out of WWDC. Pretty cool to see this kind of thing happen.
--
J "Brien" | HybridIndie Productions | http://hybridindie.com |
hybridindie@gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060807/380ae29c/attachment.html
2006 Jun 06
4
no view involved...
The canonical example of using BackgrounDRb involves updating a
progress bar on some user''s web page. Therefore, the long running
background process has some affiliation with a view.
How can backgroundrb be used for long running processes that are NOT
associated with a controller/view? Is this even possible? I
understand the nature of Rails is such that it does "just in
2006 Nov 16
2
test unit approach?
I''m just getting back to looking at backgroundrb after a long hiatus
since June. I''m looking at creating some workers but I''m a bit stuck
as to how I should write tests for them. What''s the recommended
approach for unit testing of workers?
The project will ultimately be used by a Rails app but I''m
comfortable developing the worker code as a
2006 May 21
12
TDD for Rails book?
It seems like half the people on this list are writing a book on Ruby
or Rails. For all the hints I''ve seen strewn across the list I have
yet to see one that will focus on test-driven development for either
Ruby or for Rails.
If anyone is looking for a topic, please consider this. I''ve been
trying to wrap my brain around the TDD process, but its way of
thinking is
2006 May 20
10
HOW TO create a new record and its associated objects within the SAME PAGE
hi,
can''t find any good tutorial or advice to deal with the creation of a
new record and it''s associated objects within the same page.
do i have to use ajax just to add custom form fields that will be
handled by the controller for associated objects creation.?
do i have to use ajax to add associated objects to the unsaved but
allready in session parent object?
what''s
2007 Oct 23
2
sample app using Sequel?
I''m a new merb user. Rather than ask a bunch of questions on this
list, I''d like to ask if anyone can point me to a sample merb
application preferably using trunk (or close to it) and preferably
using Sequel for the ORM.
If I can''t figure out how to bull my way through things from a
sample, I''ll come back and ask my newbie questions. Thanks!
cr
2006 Nov 22
3
RESTful web service design question
I''m working on a Rails app that needs to expose a RESTful web service. I''m curious to know some of the best practices as it relates to RESTful API design.
Let''s say I have a set of related objects on the server side. I''ll use the venerable subscribers, subscriptions and magazines example to lay it out.
class Subscriber < AR
has_many :subscriptions
2006 Nov 18
1
ActiveResource sample code?
I''d like to play around a bit with ActiveResource for consuming a web
service. Does anyone have sample code they would be willing to share?
I''ve googled all around and have come up empty except for simple (non-
working) examples given in the RailsConf keynote and some associated
blog entries.
Thanks!
cr
--~--~---------~--~----~------------~-------~--~----~
You received
2006 Jun 16
2
need help mocking out a method
I''m trying to test a controller method''s error handling. To do so I
need to mock out a method that normally returns a unique number so
that it returns a duplicate number several times in a row thereby
triggering the error handling. However, I can''t get the mock working.
Here''s the test code along with the error (all from test/functional/
2008 Dec 12
2
jruby em
What repository should I pull from to get the latest snapshot of the
EM java code for jruby?
cr
2007 Jan 23
4
Want feedback on Mongrel patch for handling partial PUT requests
By default, Mongrel will delete the HTTP request body and short
circuit calling any handlers if a request is interrupted or
incomplete. Unfortunately, this breaks any attempt to correctly
handle a partial PUT. (BTW, PUT is *way* more efficient for uploads
compared to POST which requires a MIME parsing step.) So, about a
month ago I wrote up some patches to Mongrel 0.3.18 that allowed
2006 May 18
2
How to debug the rendering in Rails?
Hi,
I have some controller code like this:
def mailing_lists
@ml = MailingList.find_by_identifier(@params[:id])
@messages = @ml.messages
@headers["Content-Type"] = "application/atom+xml"
@response.headers[''Last-Modified''] =
@messages.last.created_on.httpdateunless @
messages.empty?
minTime =
2006 May 15
3
where do I put this test?
I''m trying to use TDD on a Rails app. So far (6 hours into it) things
are going well.
My data model is starting to get a little more complex now. I now
have two related tables and I want to make sure my tests cover input
validation, record creation, and the proper creation of the foreign key.
Do I put this into a test unit for the parent table''s model?
Or do I test this
2006 May 22
2
good practice or waste of time?
I have what I hope is a simple question regarding a security practice
I''ve been using in my first Rails app. I want to know if it''s
worthwhile or if the extra typing isn''t worth it.
I have 3 models that are related to each other.
class User < AR:Base
has_one :library
end
class Library < AR:Base
belongs_to :user
has_many :items
end
class Item < AR:Base
2013 May 11
1
STDOUT.should_receive(:puts).with Works *** (:print) fails
I use: STDOUT.should_receive(:puts).with...... many times in RSPEC
However, I have a couple of "do you want(Y/N)?" where I use ''print''
and apparently ..(:print).with... does not work. I can change ''print''
to ''puts'' and it works perfectly.
How do I test :print and ...getch("y") for input???
Any help would be
2006 Jun 28
3
Best way to structure this?
I''m thinking of an application in which a user can request for different
items (like office stationery). So, I have a table of users and a table
of requests. The thing is that depending on the item requested, the
parameters are different - for example, pens may have {colour, width,
type} while paper may have parameters such as {colour, size (A4,
letter, legal), stack size,