Displaying 11 results from an estimated 11 matches for "rspec_resourc".
Did you mean:
rspec_resource
2007 Jul 26
2
rspec_resource error
...ill
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 generator?.
When I run script/generate I get the following:
Installed Generators
Plugins: authenticated, rspec, rspec_controller, rspec_model,
rspec_scaffold
Builtin: controller, integration_test, mailer, migration, model, observer,
plugin, resource, scaffold, scaffold_resource, session_migr...
2007 Apr 17
8
problem with rspec_on_rails and @controller.should_receive(:render) in trunk
...pec/example_rails_app)
** Invoke pre_commit (first_time)
** Execute pre_commit
#####################################################
running pre_commit against rails edge
#####################################################
#####################################################
ruby script/generate rspec_resource purchase order_id:integer
created_at:datetime amount:decimal keyword:string description:text
--force
#####################################################
/Users/christophsturm/Projects/rspec/example_rails_app/vendor/rails/edge/railties/lib/initializer.rb:514:in
`read'': No such file or di...
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...
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 ''scaffold_resource'' generator"
after the edit i get
"No such file or directory - [myprojectpath]/vendor/rails/railties/
lib/rails_generator/generators/components/resource/templates/...
2007 Apr 13
0
ANN 0.9-beta-2
...needs the syntax gem)
* Added [#9735] support flexmock (thanks to Jim Weirich for his
modifications to flexmock to support this)
* Spec::Rails controller specs will no longer let mock exception
ripple through to the response.
* Fixed [#9260] IvarProxy does not act like a hash.
* Applied [#9458] The rspec_resource generator does not take into
account class nesting (Patch from Steve Tendon)
* Applied [#9132] Rakefile spec:doc can fail without preparing
database (Patch from Steve Ross)
* Applied [#9678] Custom runner command line switch, and
multi-threaded runner (Patch from Bob Cotton)
* Applied [#9926] Rake...
2007 Mar 09
1
Specifying RESTful Routes
What would be the proper way to specify this route?
ActionController::Routing::Routes.draw do |map|
map.resource :recipes
end
Would the specification go into recipes_controller_spec? Also, what
methods are available for testing RESTful routes (i.e. GET, POST, PUT,
DELETE)?
2007 Mar 29
21
a better "should have valid associations"
This is pretty much the same as last time around, if you recall.
Thanks to Wilson for converting to the new form. I''ve added a few
lines. Basically, it iterates over your model associations and does
two things.
- First, just try to call the association. Usually fixes speeling
erors or other such silliness.
- Second, try to find a record with an :include on the association.
This
2007 Mar 24
15
State Based vs. Behaviour Based Spec/Testing
I''ve notice that a project like Rubinius has both a spec & a test
directory. Rspec has only a spec directory. Obviously I support
BDD, but isn''t there also a place for state based/verification
testing? I sometimes sense that I *do* want to practice Test Driven
Development. That is, I want some assurance that my production code
will run as intended. But I also
2007 Feb 15
4
defining context(s) dynamically
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Q. Why does code which defines a context work in the
2007 Jan 30
5
errors while testing resource controller using rpec
I am testing a resource called venue in this piece of code (generated
using script/rspec_resource)
====================
context "Requesting /venues using POST" do
controller_name :venues
setup do
@mock_venue = mock(''Venue'')
@mock_venue.stub!(:save).and_return(true)
@mock_venue.stub!(:to_param).and_return(1)
Venue.stub!(:new).and_return(@mock_ve...
2007 Apr 04
11
ANN: RSpec 0.9.0 beta-1 available for download.
We''d like to get some feedback on RSpec 0.9 before we start pushing
out releases via Rubyforge''s gem server and update the website. We
have therefore made the first beta of 0.9 available - both prepackaged
and tagged in subversion (see below).
RSpec 0.9 introduces a new API for expectations, which essentially
means that your underscores go away (there has been other discussions