On Jul 18, 2010, at 9:03 PM, Shane Mingins wrote:
> Does Class.new(ActionController::Base) pass it to tests as a constant though?
> Reading comment # Expects +controller_class+ as a constant. Example:
> tests WidgetController. This is just me wondering if I am missing
> something with that
Does Class.new(ActionController::Base) pass it to tests as a constant
though? Reading comment # Expects +controller_class+ as a constant.
Example: tests WidgetController. This is just me wondering if I
am missing something with that Class.new(ActionController::Base) idiom.
Patch would just be a
On Jul 18, 2010, at 8:29 PM, Shane Mingins wrote:
> And so ...
>
> # Sets the controller class name. Useful if the name can't be inferred
> from test class.
> # Expects +controller_class+ as a constant. Example: tests
> WidgetController.
> def tests(controller_class)
>
On Jul 18, 2010, at 8:21 PM, Shane Mingins wrote:
> On 19 July 2010 12:32, Shane Mingins wrote:
> Hi All
>
> I was wondering if someone could perhaps point me to where in RSpec::Rails is
> the Rails ActionController being subclassed by an Object instance? My
> ruby-fu is not high enough to w
And so ...
# Sets the controller class name. Useful if the name can't be inferred
from test class.
# Expects +controller_class+ as a constant. Example: tests
WidgetController.
def tests(controller_class)
self.controller_class = controller_class
end
But RoutingExamp
Seems to be related to the line 'tests Class.new(ActionController::Base)'
module Spec
module Rails
module Example
class RoutingExampleGroup < ActionController::TestCase
tests Class.new(ActionController::Base)
Spec::Example::ExampleGroupFactory.register(:routing, self)
Hi All
I was wondering if someone could perhaps point me to where in RSpec::Rails
is the Rails ActionController being subclassed by an Object instance? My
ruby-fu is not high enough to work out what's really going on with
RSpec::Rails with this.
The problem I am having (and I have a code example