On 10/25/07, Brian Takita [EMAIL PROTECTED] wrote:
Rails handles the reloading of classes and modules.
If you would like to have these files be reloaded, use
require_dependency instead of require. You can also use Rails constant
autoloading facility (not requiring the file) to register the
On 26 Oct 2007, at 11:55, Tarsoly András wrote:
So any pointers, help or links to some quick rundown regarding this
problem would be greatly appreciated.
From a brief look over (apologies if I missed something), you are
not invoking the errors you need to cause your rescue etc blocks to
On 10/26/07, Tarsoly András [EMAIL PROTECTED] wrote:
Greetings,
I'm using rspec with rcov for my applications and there is one issue which I
cannot solve nor can find any proper information regarding it: specing what
is in a rescue block in case of an exception.
I'm using Ruby on Rails and
On 26 Oct 2007, at 12:56, Ashley Moran wrote:
@foo.should_receive(:update_attributes!).with(params
[:foo]).and_raise(RecordNotSaved)
Sorry, RecordInvalid.new in your case, not RecordNotSaved (with or
without the new)
--
blog @ http://aviewfromafar.net/
linked-in @
On 10/26/07, David Chelimsky [EMAIL PROTECTED] wrote:
On 10/26/07, Tarsoly András [EMAIL PROTECTED] wrote:
Take a look at http://pastie.caboo.se/25 (reorganized from your
example). Note that each example is about what the controller does,
not what the model does. Also note that there are
How do you go about implementing and rspecing subdomains as account
keys? I'm sure that this must be an issues for others as well.
So I have an app using subdomains as account keys. The Application
Controller sets up @current_company in a before filter. Everything is
done within the context
Thanks a lot guys, this is great help, it's really appreciated, it
makes a lot more sense now.
I somehow felt that I'm not entirely on the right path when I'm doing
controller testing, and your replies and examples given here shed
some light on it.
David, I like your alternative better,
Hi,
I just updated my Textmate bundle to the latest in the svn because It wasn't
working with the latest version of rspec. It's been a while since I updated
the bundle ;)
I like the format that I used to have of a progress bar across the top and
html formatted results for each example, however
On 10/27/07, David Chelimsky [EMAIL PROTECTED] wrote:
On 10/26/07, Daniel N [EMAIL PROTECTED] wrote:
Hi,
I just updated my Textmate bundle to the latest in the svn because It
wasn't
working with the latest version of rspec. It's been a while since I
updated
the bundle ;)
I like
Hi,
has anyone here written a capistrano task for rspec to run through my
specs on the deployed server? I'd appreciate a snippet or two to get
me started.
Thx
linoj
___
rspec-users mailing list
rspec-users@rubyforge.org
On 10/5/07, Andrew WC Brown omen.king at gmail.com wrote:
I've added a method to the mock class that makes it pretty easy to
stub associations in rails. I've been using it for awhile and it seems
to cut down on a lot of setup code for the controller and model specs
that use associations.
Hi
On 10/17/07, John Long [EMAIL PROTECTED] wrote:
I just updated the README. It gives a better overview of the Scenarios
plugin now:
http://faithfulcode.rubyforge.org/svn/plugins/trunk/scenarios/README
Has anyone got this to work with Edge Rails/Rspec? I'm getting the
following stack trace
On 10/26/07, Jonathan Linowes [EMAIL PROTECTED] wrote:
Hi,
has anyone here written a capistrano task for rspec to run through my
specs on the deployed server? I'd appreciate a snippet or two to get
me started.
Thx
linoj
___
rspec-users mailing
I have some finders in my models where I write some of the sql myself. I
of course want to test these, but am not sure the best way. Should I just
let them roll through to the db, and verify they return the correct
objects based on the fixtures I load, or should I spec the actual query? I
know
Ryan,
Are you stubbing
@current_company = *Company.find_by_subdomain(account_subdomain)*
in the inherited #find_current_company method ?
Make sure the @current_company is the same one upon which you have your
expectations ?
ie
before do
...
Hi guys,
I have a weird failing spec, for which I just cannot figure out the
reason of failure. I'm now rewriting my controller specs based on the
advice of David and Ashley, and I got stuck on this (see: [rspec-
users] specing rescue, ensure and else blocks of an Exception).
On 10/26/07, Josh Knowles [EMAIL PROTECTED] wrote:
Has anyone got this to work with Edge Rails/Rspec? I'm getting the
following stack trace when I try and execute my specs after installing
the plugin:
FYI I got this to work by removing the reference to ExampleModule
(lines 12 - 14 of
That's quite outdated. RSpec now comes with it's own autotest plugin
(which should use it by default, if you have the rspec gem installed).
Scott
On Oct 26, 2007, at 1:23 PM, Steve wrote:
Is the rspec_autotest plugin mentioned here,
On 10/26/07, Steve [EMAIL PROTECTED] wrote:
I have some finders in my models where I write some of the sql myself. I
of course want to test these, but am not sure the best way. Should I just
let them roll through to the db, and verify they return the correct
objects based on the fixtures I
On Oct 26, 2007, at 12:11 PM, sinclair bain wrote:
Ryan,
Are you stubbing
@current_company = Company.find_by_subdomain(account_subdomain)
in the inherited #find_current_company method ?
Make sure the @current_company is the same one upon which you have
your expectations ?
ie
On Fri, 26 Oct 2007 13:38:09 -0400, Scott Taylor wrote:
That's quite outdated. RSpec now comes with it's own autotest plugin
(which should use it by default, if you have the rspec gem installed).
Scott
I'm running from trunk, and don't have the gem installed. How is
autotesting enabled?
On Fri, 26 Oct 2007 18:51:17 +, Steve wrote:
On Fri, 26 Oct 2007 13:38:09 -0400, Scott Taylor wrote:
That's quite outdated. RSpec now comes with it's own autotest plugin
(which should use it by default, if you have the rspec gem installed).
Scott
I'm running from trunk, and
On Oct 26, 2007, at 2:51 PM, Steve wrote:
On Fri, 26 Oct 2007 13:38:09 -0400, Scott Taylor wrote:
That's quite outdated. RSpec now comes with it's own autotest plugin
(which should use it by default, if you have the rspec gem
installed).
Scott
I'm running from trunk, and don't have
That's great!
Cheers!
sinclair
On 10/26/07, Ryan Heneise [EMAIL PROTECTED] wrote:
On Oct 26, 2007, at 12:11 PM, sinclair bain wrote:
Ryan,
Are you stubbing
@current_company = Company.find_by_subdomain(account_subdomain)
in the inherited #find_current_company method ?
Make
On Oct 26, 2007, at 5:39 pm, Tarsoly András wrote:
http://pastie.caboo.se/111221
I've tried everything, like stubbing out :update_attributes! , even
tested it in real-life and it works like a charm: updates / creates
new records nicely and everything else is working properly.
First,
On Fri, 26 Oct 2007 15:01:30 -0400, Josh Knowles wrote:
On 10/26/07, Steve [EMAIL PROTECTED] wrote:
I'm running from trunk, and don't have the gem installed. How is
autotesting enabled? Is it a special switch passed to 'spec' or
'spec_server'?
gem install ZenTest
cd RAILS_ROOT
autotest
On 10/26/07, Steve [EMAIL PROTECTED] wrote:
On Fri, 26 Oct 2007 15:01:30 -0400, Josh Knowles wrote:
On 10/26/07, Steve [EMAIL PROTECTED] wrote:
I'm running from trunk, and don't have the gem installed. How is
autotesting enabled? Is it a special switch passed to 'spec' or
On Oct 26, 2007, at 11:50 AM, Pat Maddox wrote:
On 10/26/07, Jonathan Linowes [EMAIL PROTECTED] wrote:
Hi,
has anyone here written a capistrano task for rspec to run through my
specs on the deployed server? I'd appreciate a snippet or two to get
me started.
Thx
linoj
On 10/26/07, Tarsoly András [EMAIL PROTECTED] wrote:
On 2007.10.26., at 21:28, Ashley Moran wrote:
First, like David said earlier, you're putting too much into one spec:
Also I don't think you need '@option = ' in front of
@option.update_attributes!, as that method call modifies the
Hello,
I'm working on specs for a controller that handles authentication
using the restful_authentication plugin. I'm trying to find a
resource (tutorial or examples, if possible) about the best way to go
about writing mocks and specs to make sure that things like my
before_filters are
30 matches
Mail list logo