Displaying 10 results from an estimated 10 matches for "rspec_generator".
2007 Mar 27
1
REST rspec_generator
Is there some reason that the rspec resource generator produces code
like this:
context "Routes for the AnimalsController should map" do
controller_name :animals
specify "{ :controller => ''animals'', :action => ''index'' } to /
animals" do
route_for(:controller => "animals", :action =>
2008 Jun 11
11
rspec and rspec-rails install hell
...hub.com/dchelimsky/rspec-rails.git
cd ../../
script/generate rspec
The git repository works.
But, this leads to problem 2.
> ruby script/generate rspec
Couldn''t find ''rspec'' generator
Now What???!!!
So, poking around the googlespace I find reference to gem install
rspec_generator so, I do that:
> gem install rspec_generator
Successfully installed rspec-0.5.15
Successfully installed rspec_generator-0.5.15
2 gems installed
Installing ri documentation for rspec-0.5.15...
Installing RDoc documentation for rspec-0.5.15...
rspec-0.5.15 ????
Ok, now I have
1. rspec-0.5.15...
2007 May 22
5
rails edge
hi,
first time trying rspec, and rails edge. Are there any known issues
running rspec with rails edge?
for one, apparently script/generate scaffold_resource has been
renamed just "resource". Do I just search/replace "scaffold_resource"
with "resource" in file rspec_resource_generator.rb ? Somethings
still missing.
before i get "Couldn''t find
2007 Jun 08
4
Still recommend the plugins over the gems?
...opposed to relying on an RSpec gem). See special instructions
> below if you want to install the HEAD of the trunk, or an older
> version.
(from http://rspec.rubyforge.org/documentation/rails/install.html)
Is this still the case? Why?
Is the rspec_on_rails available in gem form?
Does rspec_generator (the gem, currently at 0.5.15) correspond to the
plugins?
-David
2006 Nov 22
1
rspec_on_rails (MissingSourceFile)
Hi there,
I''ve installed rspec, rails plugin & generators thusly:
$ sudo gem install rspec
$ sudo gem install rspec_generator
$ sudo gem install zentest -v 3.4.1
$ ./script/plugin install
svn://rubyforge.org/var/svn/rspec/tags/REL_0_7_2/vendor/rspec_on_rails/vendor/plugins/rspec
$ ./script/generate rspec
$ ./script/generate rspec_model ModelName
With Rails version:
$ rails --version
Rails 1.1.6
However, when I try...
2006 Nov 22
0
rspec_on_rails MissingSourceFile
Hi there,
I''ve installed rspec, rails plugin & generators thusly:
$ sudo gem install rspec
$ sudo gem install rspec_generator
$ sudo gem install zentest -v 3.4.1
$ ./script/plugin install
svn://rubyforge.org/var/svn/rspec/tags/REL_0_7_2/vendor/rspec_on_rails/vendor/plugins/rspec
$ ./script/generate rspec
$ ./script/generate rspec_model ModelName
With Rails version:
$ rails --version
Rails 1.1.6
However, when I try to...
2006 Nov 24
0
rSpec REL_0_7_2 rspec_on_rails (MissingSourceFile) >> Fixed in trunk
...<Specs running nicely>
Thanks, Keith On 11/22/06, Keith McDonnell <keith at dancingtext.com> wrote:
> > Hi there,
> >
> > I''ve installed rspec, rails plugin & generators thusly:
> >
> > $ sudo gem install rspec
> > $ sudo gem install rspec_generator
> > $ sudo gem install zentest -v 3.4.1
> > $ ./script/plugin install
> > svn://rubyforge.org/var/svn/rspec/tags/REL_0_7_2/vendor/rspec_on_rails/vendor/plugins/rspec
> >
>
I believe this is fixed on trunk. Could you try this instead?:
(somewhere outside your rails ap...
2007 Dec 19
4
Questions on writing plugin for merb
Hey all,
I am looking to write a plugin for merb and have a few queries about
how to best go about it. I have a few questions (sorry if some are
very merb newbie ones):
- It seems all the plugins are gems; I can just add dependencies (my
plugin will require soap4r) as per any usual gem spec?
- If I want my plugin to add some new generate functionality? Is this
possible? If so, are there
2006 Jun 16
0
rake spec controller test output hideus.
...70800590515137,
@variables_added=true, @template=#<#<Class:0x251ee78>:0x24d4f80 ...>>,
@assigns_added=true>> should not be success
./spec/controllers/user_controller_spec.rb:31:in `should not allow new
users without the correct fields''
/opt/local/lib/ruby/gems/1.8/gems/rspec_generator-0.5.9/lib/rspec_on_rails.rb:33:in
`run''
/opt/local/lib/ruby/gems/1.8/gems/rspec_generator-0.5.9/lib/rspec_on_rails.rb:31:in
`run''
Finished in 0.486169 seconds
4 contexts, 9 specifications, 1 failure
rake aborted!
RSpec failures
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