Displaying 8 results from an estimated 8 matches for "controllerexamplegroup".
Did you mean:
controller_example_group
2011 Aug 10
5
ControllerExampleGroup.bypass_rescue
As best I can tell, bypass_rescue from rspec-rails-1 is no longer part of rspec-rails, ''> 2''. I had been using it on occasion for things like:
describe CorrespondencesController do
...
describe ''#show'' do
it "should raise an AuthorizationError if current user is not the correspondent " do
bypass_rescue
...
expect { do_get
2008 Feb 22
7
Testing misc methods in ApplicationController
...ce("foo and bar").should eql("+foo +bar")
end
end
end
Currently, the test breaks, saying:
NoMethodError in ''ApplicationController andreplace(str) should format ands
for ferret search''
undefined method `andreplace'' for
#<Spec::Rails::Example::ControllerExampleGroup::Subclass_1::Subclass_1:0xb64f7160>
What''s going wrong here, anyone know?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20080222/a5ae09d4/attachment.html
2008 Oct 20
5
RSpec-Rails bug with to_xml?
Hello, everyone. I''ve been lurking here for a while, but this is my first post.
I think I''ve run into a RSpec bug in a Rails project I''m working on. I
was working on a few REST controllers, and started getting failures on
a specific spec that verified whether a certain action returned XML
output. I spent quite a lot of time checking my code to see if it was
something I
2008 Dec 01
1
Undefined method "full_description" when trying to run "rake spec"
...9;m getting this weird error when trying to run the specs using "rake spec":
/home/mauricio/NetBeansProjects/talkies/vendor/rails/actionpack/lib/action_controller/test_process.rb:471:in
`method_missing'': undefined method `full_description'' for
#<Spec::Rails::Example::ControllerExampleGroup::Subclass_73::Subclass_9:0x7f5fdca4a810>
(NoMethodError)
from /usr/lib64/ruby/gems/1.8/gems/rspec-1.1.11/lib/spec/matchers.rb:155:in
`method_missing''
from /home/mauricio/NetBeansProjects/talkies/vendor/plugins/rspec/lib/spec/runner/formatter/base_text_formatter.rb:25:in
`example_pendi...
2013 Mar 20
2
Rspec + Devise + BaseController
Hello there,
I''m creating a base controller for the admin section of a project. All
controllers whitin the admin section will inherit from it.
#####################################################
#app/controllers/admins/base_controller.rb
class Admins::BaseController < ApplicationController
layout "admin_cms"
before_filter :authenticate_admin!
end
2008 Jan 15
0
Problem with ruby-debug and rspec
...nk rabble$ spec
spec/controllers/account_controller_spec.rb
/Users/rabble/code/fireeagle-rails/core/trunk/lib/sso_authentication/test_helper.rb:15
@controller.stubs(:current_user).returns(user)
(rdb:1) p self
INTERNAL ERROR!!! undefined method `remove_method'' for
#<Spec::Rails::Example::ControllerExampleGroup::Subclass_1:0x34a22a4>
/Users/rabble/code/fireeagle-rails/core/trunk/vendor/rails/actionpack/lib/action_controller/test_process.rb:464:in
`method_missing''
/opt/local/lib/ruby/gems/1.8/gems/rspec-1.1.2/lib/spec/matchers.rb:149:in
`method_missing''
/Users/r...
2007 Dec 14
5
How do I mock params?
...ere is the code within the controller:
Line 69: @photo = @member.build_photo(params[:photo]) unless
params[:photo][:uploaded_data].blank?
I got a little ahead of myself and wrote the code, and now have a bunch
of errors telling me that:
-------
6)
NoMethodError in ''Spec::Rails::Example::ControllerExampleGroup
MembersController handling PUT /members/1 should find the member
requested''
You have a nil object when you didn''t expect it!
You might have expected an instance of ActiveRecord::Base.
The error occurred while evaluating nil.[]
/Users/chris/Documents/Projects/Rails/CommunityCMS/tru...
2007 Nov 26
8
Renaming RailsExample to RailsExampleGroup
Fyi, I made the following renames:
* RailsExample -> RailsExampleGroup
* FunctionalExample -> FunctionalExampleGroup
* ControllerExample -> ControllerExampleGroup
* ViewExample -> ViewExampleGroup
* HelperExample -> HelperExampleGroup
* ModelExample -> ModelExampleGroup
This was done to keep the naming consistent with ExampleGroup.