Displaying 20 results from an estimated 10000 matches similar to: "generate script_controller not creating test code"
2007 Jul 26
2
rspec_resource error
First of all hi, I''m new to the list, and rather new to rspec as will
probably show in myquestion.
I have tried installing rspec and rspec_on_rails as plugs both using
"script/install" and
"piston import" commands using the "current release install instructions"
here [1]. However,
there doesn''t seem to be any mention of the rspec_resource
2007 Nov 02
5
RSpec, RESTful nested routes and :path_prefix
Dear list,
In the app we are making we have a rout something like this:
map.resources :projects do |projects|
projects.resources :pages, :controller
=>"Wiki::Pages", :path_prefix => "/projects/:project_id/
wiki", :name_prefix => "project_wiki_"
end
But I can''t get RSpec(I''m very new to it) to accept this. It keeps
throwing errors:
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
2011 Apr 27
2
rspec -> Could not find generator rspec_controller
for some reason, i cannot get the rspec generators to work. i am getting
the following:
$ rails generate rspec_controller
Could not find generator rspec_controller.
the rest of the parts of rspec (that i am familiar with) seem to be
doing just fine.
i am running:
* rails (3.0.5)
* rspec (2.6.0.rc2)
* rspec-core (2.6.0.rc2)
* rspec-expectations (2.6.0.rc2)
* rspec-mocks (2.6.0.rc2)
2008 Jun 15
2
Create haml files with rspec_controller command?
It is a nuisance to have to rename all of your files from .erb to .haml.
Is there a quick way around this?
--
Posted via http://www.ruby-forum.com/.
2007 Aug 16
17
undefined method `mock_model'' for [RSpec example]:#<Class:0x25550a8>
I am getting:
undefined method `mock_model'' for [RSpec example]:#<Class:0x25550a8>
with my view specs after upgrading to 1.0.8. Is anyone else seeing this?
To isolate the message I did the following setup:
- create new rails project (with edge)
- installed rspec and rspec_on_rails
- ran rake spec
- ran script/generate rspec_scaffold products
- tried to run a builtin view
2006 Nov 03
10
[PLUGIN] rspec_resource_generator - RESTful scaffold generator with RSpec specifications
rspec_resource_generator
========================
By Pat Maddox
Use this generator to generate RESTful scaffolding with RSpec specifications.
Syntax is exactly the same as the scaffold_resource generator:
./script/generate rspec_resource ModelName [field:type field:type]
When you run this generator, it will create a migration, model, and
model spec file. In addition, it gives you a RESTful
2007 Feb 26
15
drbspec - "no server running"
At times I''ve gotten the message "No Server Running" from drbspec
with my rails app. The thing is, the drb server certainly is running!
This happened a few times with my model specs. I''m not sure exactly
what the problem was there - I believe I was loading up fixtures that
didn''t exist. I was calling fixtures :singular_table_name as opposed
to
2008 Oct 09
1
About received unexpected message :code with (no args)
I use rspec_scaffold to generate a part of examples as below:
it "should expose a newly created awarding_body as @awarding_body" do
AwardingBody.should_receive(:new).with({''these'' =>
''params''}).and_return(mock_awarding_body(:save => true))
post :create, :awarding_body => {:these => ''params''}
2003 Jan 02
2
--copy-unsafe-links, links preserved in source tree or local directory?
Hi,
I'm a bit confused about what the '--copy-unsafe-links' option
considers the 'source tree'. In the man page it says that for links
pointing outside the 'source tree' the file will be copied, but when I
try this, for all links pointing outside of the local directory the
files are copied even though the links point to files that are in the
directory tree that is
2008 Jun 12
1
map.resources :foo_items, :as => :foo confusing my controller specs
I have following resource defined in my config/routes.rb (the model
name is contrived)
map.resources :foo_items, :as => :foo
that I originally generated with rspec_scaffold:
ruby script/generate rspec_scaffold foo_item
but when I use the :as attribute in resources to make the URI path be
''/foo'' instead of ''/foo_items'' the default/generated controller
2007 Dec 16
3
how do I spec my Rails routes?
Once again, here''s something I haven''t figured out. Apologies if this
is too newb-ish, but, how do I spec my routes using RSpec-Rails?
In particular, I''ve got a catch-all route that needs to catch a wide
variety of URLs:
map.document ''*url'', :controller => ''documents'', :action => ''show''
Is there a way to
2008 Nov 01
5
Issues after removal of rpsec plugins and gem install
autotest will no longer run my tests after I installed the rpsec gem and
removed the plugins. I did install the rspec-rails gem as well.
Is anyone else having this issue?
--
Posted via http://www.ruby-forum.com/.
2000 Oct 23
3
behaviour of plot(...,type="l")
plot(rnorm(100000),type="l")
plots only about 7e4 lines while the same without type="l" works fine.
Is this a feature or a bug or is this configurable?
R : Copyright 2000, The R Development Core Team
Version 1.1.1 (August 15, 2000)
SunOS 5.5.1 Generic_103640-29 sun4u sparc SUNW,Ultra-1
Thanks
Adrian
--
Adrian Trapletti, Olsen & Associates Ltd., See-
feldstrasse
2011 Feb 08
2
Ken Olsen od DEC, 1927-2011
A lot of us wouldn't be here without him. DEC made good, really reliable
hardware.
mark
<http://www.networkworld.com/news/2011/020711-kenneth-olsen-dec-obit.html>
2009 Jun 13
2
removing Mocha; 'spec spec' fails but the specific model file passes
I happened to mix ryan bates'' authentication scaffold with
rspec_scaffold on a demo project.
and ran into the problem of mixing mock frameworks...ryan uses mocha.
So, as a learning experience, I choose to redo ryan''s tests without
mocha but ran into a strange problem with tests of the User model.
With debugging you can see....
If you run just the user_spec.rb file, everything
2015 Sep 16
4
Realtime Voicemail MWI
Greetings All, Regarding this archived post.
http://lists.digium.com/pipermail/asterisk-users/2014-November/285169.html
Did anyone ever find an solution to this? I've got a new box running
13.3.0 with the exact same issue.
For those that don't read the link.
I've got SIP Peers in realtime. All with a mailbox set. 98% of the time,
These are loaded into asterisk without
2007 Nov 21
6
route_for and nested resources
I can''t figure out how to make the updates to allow for the route_form
method to return a url that matches the expected.
Here is a sample
route_for(:controller => :task, :action => :new).should == "/task/new"
If a task has to be created for a user, how exactly do I do this. The
following doesn''t work:
route_for(:controller => :task, :action => :new,
2009 Aug 23
5
Upgrading to 2.3 from 2.1
Can be done in a one step process or do I have to upgrade to 2.2 then
2.3?
Thanks for the help.
--
Posted via http://www.ruby-forum.com/.
2005 Mar 17
5
up-to-date debian packages?
The debian (unstable) libtheora and libogg packages are a little out
of date. I was wondering if anybody had made their own packages for
libogg-1.1.1 and libtheora-1.0alpha4.
If not, I'll go ahead and package them up and put them up on my own
debian repository or something, and let you guys know where to get
them.
But if somebody has already done that, let me know.
thanks,
Tim