Displaying 20 results from an estimated 1000 matches similar to: "View Specs Fail with "protected method render""
2007 May 26
11
RSpec
Hi RSpec Mailing list,
I''m new to RSpec and I am trying to get it running with the caboo.se sample
rails app.
I installed the current version of rspec with rspec_on_rails
I tried to run rake spec but received:
330-07:~/desktop/restful_auth_rspec/vendor multimedia$ rake spec
(in /Users/multimedia/Desktop/restful_auth_rspec)
2006 Nov 10
3
Specifying views
I''m trying to spec my views with 0.7.1 on edge rails per the
instructions on the rspec site [1] and David''s blog [2], but I''m not
having much luck. Here''s my spec in specs/views/accounts/
new_view_spec.rb:
require File.dirname(__FILE__) + ''/../../spec_helper''
context "The new account form" do
specify "should have an
2007 Jan 12
2
spec_ui problems
While looking into spec_ui, I decided to run the examples.
The watir example works a little, but always chokes on the ''better
than fudge'' spec (failure output below). Also, is there any command
to pause the "browser"? If my connection slows, the test gets out of
whack.
The selenium example fails right away (output below). I do have the
0.9.0 selenium-rc
2007 Feb 13
16
Error against latest trunk while testing via spec for model
Hi
I just did an update to lates trunk
=================
context "Given a generated venue_spec.rb with fixtures loaded" do
fixtures :venues
specify "fixtures should load two Venues" do
Venue.should have(2).records
end
end
==================
gives me
==========
1)
TypeError in ''Given a generated venue_spec.rb with fixtures loaded
fixtures should load two
2006 Dec 12
3
rpec 0.7.4/ rails 1.2rc1 troubles
I believe that I have followed these directions exactly: http://
rspec.rubyforge.org/documentation/rails/install.html
My new spec tests work, but my old Test::Unit test don''t produce any
output. The only clue I have anything is happening at all are these
messages in log/test.log:
Spec::Rails::HelperEvalContextController: missing default helper path
2006 Oct 04
1
String.should_hav_tag
I''ve just upgraded to rspec 0.6.4 and several specs were broken. All
for the same reason. String.should_have_tag doesn''t seem to be
supported any longer.
It used to be possible to write assertions like:
response.body.should_have_tag :tag => "form"
or
"<html><body/></html>".should_have_tag :tag => "body"
But these fail
2007 Apr 25
9
Running specs for a plugin - undefined method ''define'' for object
I''m trying to write specs for a plugin I''m developing named audit_fu, and
I''m running into a problem which I can''t get past it. I''ve got the same
specs setup in the main rails app, and everything works fine there, it''s
just running the plugin specs that I''m having a problem with. My setup is:
- edge rails
- edge rspec (in
2008 Jan 31
4
RSpec-1.1.3
RSpec-1.1.3 has been released.
If you''re using RSpec and autotest, you''ll have to upgrade to
RSpec-1.1.3 and ZenTest-3.9.0 at the same time.
== Version 1.1.3
Maintenance release.
* Tightened up exceptions list in autotest/rails_spec. Closes #264.
* Applied patch from Ryan Davis for ZenTest-3.9.0 compatibility
* Applied patch from Kero to add step_upcoming to story listeners.
2006 Jul 30
2
options_from_collection_for_select & multiple columns
I have a table with first_name and last_name, and wan''t to populate a
drop-down with the id and the person''s name consisting of the first and
last names concatenated together.
Can''t figure out how to tell options_from_collection_for_select to do
that.
Any ideas?
I basically need to do something like:
<%= options_from_collection_for_select @media_creators,
2006 Jul 31
2
add title to links
Hi,
below is an example of one of my links, in order to create a pop up css
window when I hover over it, I need to be able to add a title element,
<%= link_to ''Edit Details'', :action => ''edit'', :controller
=>''account'',:id => @user.id %>
so it will appear like <a href="http://localhost/edit/1" title="text
2008 Jan 17
4
multiple views, and some routers
Hi, I''m new to Rails (just a Java Programmer tired of having to
configure a lot of xml''s and mapping classes just to make a simple page
(...))
anyway,
I''m experiencing some problems with routers, i''ve created a new project
using Rails 2.0 and created a scaffold for users.
so i have the following:
users/new.html.erb
...
(and the other pages created by the
2006 Oct 28
5
RSpec, REST and different formats
Is anyone using RSpec with RESTful rails apps? In my rails controllers I
check request.respond_to? and render different views accordingly.
I noticed that the get method in the rails plugin doesn''t accept headers:
controller_mixin.rb line 92
def get(action, parameters = nil)
@request.env[''REQUEST_METHOD''] = ''GET''
process action,
2007 Feb 12
6
Specs for Ajax partials with unicode characters
Hi
Not sure if this is more Rails or RSpec related...
I''ve got an app with an RJS view that updates a div in a page with
the contents of a partial. The partial contains a non-ascii
character namely a pound sign.
I set up a simple test app with this RJS view:
page.replace_html("test_div", :partial => "test_action")
and this _test_action.rhtml:
2008 Aug 15
7
Autotest and subclasses / namespaces
I am writing a controller admin/cities_controller.rb
it inherits from AdminController, so it''s defined like
class Admin::CitiesController > AdminController
Whenever I save the controller file, autotest freaks out:
uninitialized constant Admin::AdminController (NameError)
I''m pretty used to just hitting CTRL-C to get autotest to re-load all
the files, or flicking to
2007 Mar 14
11
path vs. url
When using named RESTful routes, when should one use the
generated ..._path helpers, and when the ..._url helpers? Say I did
this in routes.rb:
map.resources :users
Where should I use users_path, new_user_path, etc., and where should I
use users_url, new_user_url...?
Thanks!
Steve
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to
2007 Jan 16
2
Links in view specs
Hi
I have this simple view (used by the Gap controller):
<h1>Gap#index</h1>
<%= link_to "Get a GAP quote", :action => "get_quote" %>
And this spec:
context "A rendered gap/index" do
setup do
render ''gap/index''
end
specify "should have a link to the get_quote page" do
2006 Nov 07
3
include Helper in context?
Brandon,
can you get your Helpers to work in rspec 0.7 ? I''m including them in
the context but the render fails to see it.
If you have it working, I''ll go back and bang my head against it some
more, otherwise I''ll file a bug!
Many thanks,
Jerry
context "account/login (view)" do
include StandardHelpers
specify ''displays title
2010 Apr 15
11
Rails 3, Rspec 2, Autotest
Trying to set up a Rails 3 project with RSpec and Autotest. I followed
these steps exactly:
http://gist.github.com/365816
But when I start up autotest, I get:
$ autotest
loading autotest/rails
style: Rails
instead of:
$ autotest
loading autotest/rails_rspec2
style: RailsRspec2
And autotest doesn''t seem to do anything. Any idea what''s happening?
I''m using Ruby
2008 Jan 31
11
ZenTest-3.9.0 incompatible with RSpec-1.1.2
Hey all,
Just a heads up that the ZenTest-3.9.0 release is not compatible with
RSpec-1.1.2. I thought I had a release ready to go, but differences
between a preview release of ZenTest that I received and the actual
release seem to have broken compatibility.
We''ll get this resolved soon, but in the mean time please hold off on
upgrading to ZenTest-3.9.0 if you''re using RSpec.
2011 Jan 14
2
Rspec autotest error
Hi all,
I tried testing with Rspec for first time, following a tutorial.
"rspec spec/" works fine but when I try ''autotest'' it gives me the
error message below. I also made a gist about it: https://gist.github.com/779265
It seems like a redgreen or ZenTest error. I''m using Ubuntu10, Rails3,
Ruby 1.9 and RVM. Any help is appriciated, thanks in advance,
gezope