Displaying 20 results from an estimated 9000 matches similar to: "RSpec getting too intimate?"
2006 Nov 21
6
Spec Naming (was: Rspec Brown Bag)
Thanks for posting your specdoc, Brandon -- they''re a great example.
On 11/21/06, Brandon Keepers <bkeepers at gmail.com> wrote:
>
> A user purchasing items
> - should create an order
> - should add to the user''s orders
> - should create line items
> - should set line item amount to the item''s price
> - should set line item amount to 0 if
2007 Sep 24
3
rcov including ruby lib
When I run spec:rcov on my continuous integration server, the rcov
report is including many other libraries in the report, including
some from standard lib and gems. Has anyone else had this problem or
have any ideas for how to limit it just to coverage of code in app/
and lib/?
Thanks,
Brandon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
2007 Apr 28
1
backgroundrb and fastthread
I was just curious if anyone noticed any significant performance
improvements using fastthread (or Ruby 1.8.6) with BackgrounDRb
Brandon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url :
2007 Oct 10
9
Rspec Textmate bundle errors
Hello all,
Having a problem with the Rspec textmate bundle and having quizzed
the guys in #textmate to no success about the errors, I''ve been
suggested to try you guys!
When I run the "Run Behaviour Description" command, I get the
following errors:
/Users/alastair/Library/Application Support/TextMate/Bundles/
RSpec.tmbundle/Support/lib/spec/../spec/mate/runner.rb:34:in
2006 Nov 10
3
Specifying views
I''m trying to spec my views with 0.7.1 on edge rails per the
instructions on the rspec site [1] and David''s blog [2], but I''m not
having much luck. Here''s my spec in specs/views/accounts/
new_view_spec.rb:
require File.dirname(__FILE__) + ''/../../spec_helper''
context "The new account form" do
specify "should have an
2007 May 21
4
Spec''ing redirect with arbitrary parameters
I''ve got the following expectation:
response.should redirect_to(:action => "new", :video_id => "1",
:process_id => "2", :origin_id => "3")
that fails with this error message:
expected redirect to {:video_id=>"1", :process_id=>"2",
:origin_id=>"3", :action=>"new"}, got redirect to
2007 Apr 26
2
looking for a worker that''s gone
In my app, I store the job key when a worker is fired off and then
check back in periodically to see how its doing. The workers delete
themselves when they''re done. I would expect when I try to get a
worker that has been deleted, I would get nil or a proper exception,
but instead I get:
>> MiddleMan.worker(''foobar'')
NoMethodError: undefined method
2006 Dec 06
1
shared hosting for an ISP
A hosting company has contacted me and is interested in providing
Ruby on Rails hosting for their customers. They provide both
dedicated and shared hosting. I know there are a lot of shared hosts
that support Rails, but most of them (that I''ve seen) are using
mod_fastcgi, or a similar setup. I''m curious what people think about
accomplishing this with mongrel with
2008 Jul 24
3
Delivery notifications
I'm working on an application that is backed by Postfix 2.3.8 and
Dovecot 1.0.13, configured with virtual domains, for handling messaging.
I need to be able to send the notification (such as "You've received a
new message on SomeAwesomeService. Click here to check it out", It's
evil, I know) to a different email address, such as a mobile device.
Eventually, we want
2007 Oct 18
4
Mocking models provided in Rails plugins
Hey folks,
How do I mock a model that is given to me by a Rails plugin? I''m
trying to mock Session from the restful_authentication plugin but I
get a number of errors telling me RSpec doesn''t recognize Session.
NameError in ''SessionsController handling GET /sessions/new should be
successful''
uninitialized constant Session
An example of my usage:
2007 Jun 08
4
Still recommend the plugins over the gems?
> We strongly recommend you install RSpec and Spec::Rails as plugins
> (as opposed to relying on an RSpec gem). See special instructions
> below if you want to install the HEAD of the trunk, or an older
> version.
(from http://rspec.rubyforge.org/documentation/rails/install.html)
Is this still the case? Why?
Is the rspec_on_rails available in gem form?
Does rspec_generator
2009 Mar 03
1
shoulda tested better
We''ve made quite a few contributions in our facebooker fork (http://github.com/collectiveidea/facebooker
), but unfortunately, one thing some of our contributions have in
common with many others is the lack of testing. I want to change
that. I''d like to help lead an effort to make the facebooker tests
better.
One thing that I think would help is a little better
2007 Dec 07
4
strange error on mock proxy
I''m banging my head over this really strange error in a view test when
I run "rake spec". The weird thing is that I don''t get the error when
I run the spec file by itself.
Here is the spec (I know, fixtures are the devil):
describe "/units/new.html.erb here" do
fixtures :units, :accounts, :groups
it_should_behave_like
2006 Nov 21
5
Specification Reuse to avoid Combinatorial Explosions
Hello,
While reading Dan North''s BDD tutorial <http://dannorth.net/introducing-bdd>,
I tried to implement his ATM example as spec stubs.
When I first implemented it creating a context for each of his scenarios, I
noticed that there is duplication and a combinatorial explosion of the
specs.
I attached the full files to this email. For brevity, I will use scenario 1
in the body of
2007 Jun 28
23
DRYing link_to with a symbol
Hi, I just put in a patch that allows you to DRY up this:
<%= link_to @company.name, @company %>
to this:
<%= link_to :name, @company %>
The symbol indicates the method to be called on the object passed in
the link_to options.
http://dev.rubyonrails.org/ticket/8789
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
2007 Feb 02
7
Coming Soon...
Dear spec''ers,
As many of you already know, we''re gearing up for a pretty big 0.8
release of RSpec in the next couple of weeks. I''m writing in advance
because I want to give you a heads up about upcoming changes and how
they may impact your existing specs.
Two important things to note first:
1. We will provide a translator that you''ll be able to use to
2006 Mar 13
7
Wilcard search
Hello,
I''m writing a search function for my application, but I am unsure on how
to search for all results that contain my search string; here''s what
I''ve got:
def search
@products = Product.find(:all,
:conditions => "date_available < now()",
:conditions => [ "title ilike ?",
2006 Nov 21
10
Rspec Brown Bag
Hello,
I''m scheduled to give a rspec brown bag this Wednesday (11/22) for my
company (Pivotal Computer Systems, http://www.pivotalsf.com). I did see Dave
Astel''s talk as well as several of my coworkers.
The developers at my workplace are experienced Agile developers.
What would be some good things to focus on for this brown bag?
Are there slides to presentations that would be
2007 Nov 14
7
BackgrounDRb version 1.0RC1 available now
Hi Folks,
BackgrounDRb is a Ruby job server and scheduler. Its main intent is to be
used with Ruby on Rails applications for offloading long-running tasks.
Since a Rails application blocks while serving a request it is best to
move long-running tasks off into a background process that is divorced
from http request/response cycle.
This new release of BackgrounDRb is also modular and can be used
2009 Mar 14
5
The 2.3 branch and Rails Edge failing
I found Brandon''s 2.3 branch for Facebooker and thought I''d give that
a try to get around the problems I ran into starting script/server
with Rails Edge. Unfortunately, no go.
The error I get on start up is:
> /Users/user/Sites/iwr2/vendor/rails/activesupport/lib/active_support/
> dependencies.rb:440:in `load_missing_constant'': uninitialized
> constant