Displaying 9 results from an estimated 9 matches for "subclass_1".
Did you mean:
subclass1
2011 Mar 09
1
undefined method `flunk' for #<Spec::Example::ExampleGroup::Subclass_1:0x0000000516bd40>
...it.
if @session
@session.load_stdapi
else
flunk "Couldn''t get a session!"
end
end
end
And the error:
undefined method `flunk'' for
#<Spec::Example::ExampleGroup::Subclass_1:0x0000000516bd40>
I believe this method is contained within the rspec-rails classes and
i''m not using those in this case. Is there an alternative to using flunk
- Suggestions?
jcran
--
Jonathan Cran
jcran at 0x0e.org
515.890.0070
2008 Feb 22
7
Testing misc methods in ApplicationController
...t;).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
2011 Jul 06
0
undefined method `assigns' and undefined method `post'
Hi,
I have an error of undefined method.
can anyone help me to solve it.
I follow the tutorial to practicing testing controller of rails, and
now i got stuck with the error.. plz help
error:
undefined method `post'' for
#<Spec::Example::ExampleGroup::Subclass_1:0xb7754114>
undefined method `assigns'' for
#<Spec::Example::ExampleGroup::Subclass_1:0xb785d1b4>
Test file
describe "GET Index" do
def mock_product(stubs={})
@mock_user ||= mock_model(User, stubs).as_null_object
end
def setup
@user = User.new
end
plea...
2007 Dec 11
3
can''t access helper methods for model testing
...end
it "should be valid" do
@member.should be_valid
end
end
=======
NameError in ''Spec::Rails::Example::ModelExampleGroup Member should be
valid''
undefined local variable or method `valid_member_mock'' for
#<Spec::Rails::Example::ModelExampleGroup::Subclass_1:0x20e6814>
=======
I would assume that rails is including the helper module behind the
scenes, although I have explicitly made the require with no luck.
What am I missing? Are these helpers only for controller tests?
Thanks
--
Posted via http://www.ruby-forum.com/.
2009 May 23
9
undefined method `assert_select'
...see this error:
$ spec
vendor/plugins/openlaszlo_plugin/spec/swfobject_view_helper_spec.rb
FFFFFFF
1)
NoMethodError in ''ActionView::Helpers::SwfObjectHelper swfobject_tag
should call swfobject.embedSWF''
undefined method `assert_select'' for
#<ActiveSupport::TestCase::Subclass_1::Subclass_1:0x2281278>
./vendor/plugins/openlaszlo_plugin/spec/swfobject_view_helper_spec.rb:17:
line 17 is:
html.should have_tag(''script'', /swfobject.embedSWF/)
Can anyone give me a hint?
Thanks,
Sarah
--
Posted via http://www.ruby-forum.com/.
2007 Dec 12
3
undefined method: controller_name
...t the following error:
kwigger:~/workspace/eTriever-spec-tmp alvin$ script/spec --backtrace
spec/unit/controllers/application_controller_spec2.rb
./spec/unit/controllers/application_controller_spec2.rb:10: undefined
method `controller_name'' for
Spec::Rails::Example::RailsExampleGroup::Subclass_1:Class (NoMethodError)
from
/Users/alvin/workspace/eTriever-spec-tmp/vendor/plugins/rspec/lib/spec/example/example_group_methods.rb:39:in
`module_eval''
from
/Users/alvin/workspace/eTriever-spec-tmp/vendor/plugins/rspec/lib/spec/example/example_group_methods.rb:39:in
`des...
2008 Oct 10
16
rspec - undefined method `describe'' for main:Object
When i run a spec file i am getting the following error
D:\Diwakar\spec_diwa\spec\controllers>spec sandbox_controller_spec.rb
c:/ruby/lib/ruby/gems/1.8/gems/rspec-0.5.15/lib/spec/api/sugar.rb:17:in
`method_
missing'': undefined method `describe'' for main:Object (NoMethodError)
from ./sandbox_controller_spec.rb:7
from
2008 Oct 12
0
How to test with RSpec a Rails plugin using “link_to” and “current_page?”
...tialize(base)
@base = base
end
def link
@base.link_to(name, url_options, html_options)
@base.current_page?(url_options)
end
end
And I get this error with RSpec:
Undefined method `link_to'' for #<
Spec::Rails::Example::RailsExampleGroup::Subclass_1:0x24afa90>
Any clue?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscrib...
2008 Jan 15
0
Problem with ruby-debug and rspec
...trollers/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/rabble/code/f...