similar to: Specifying views

Displaying 20 results from an estimated 1000 matches similar to: "Specifying views"

2007 Apr 11
13
View Specs Fail with "protected method render"
I''ve got rspec and zentest installed as well as the rspec rails plugin, and my model/controller specs all pass and work well. I can''t seem to get views to work though - 100% of the specs fail with: NoMethodError in ''/users/show.rhtml should render attributes in <p>'' protected method `render'' called for
2007 Mar 01
1
ActiveRecord::StatementInvalid error
When I try to run my webserver in the production environment I just get an application error message. This is all I can find in the log: ActiveRecord::StatementInvalid /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.1/lib/active_record/ connection_adapters/sqlite_adapter.rb:274:in `table_structure'' /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/
2006 Aug 16
3
problems with fastcgi, apache2 and debian sarge
Apache conf: FastCgiServer /var/www/gissmoh.de/public/dispatch.fcgi -initial-env RAILS_ENV=prod uction -processes 5 -idle-timeout 60 <virtualhost 212.87.142.234:80> ServerName www.gissmoh.de DocumentRoot /var/www/gissmoh.de/public CustomLog /var/log/apache2/gissmoh.de/access.log combined SetEnv RAILS_ENV production
2007 May 01
6
rspec and autotest
If you want to use rspec-0.9.2 with autotest (ZenTest-3.5.2), you''ll want to read this blog: http://blog.davidchelimsky.net/articles/2007/05/01/rspec-0-9-1-and-autotest-zentest-3-5-2 Enjoy! David
2007 May 23
4
autotest and rspec for a non-rails project
hi list - should it be possible to use autotest to continuously run specs for a non-rails project? when i execute autotest in the base directory of my project, it complains that it cannot load rspec_autotest, however looking at rspec_autotest[1] and rspec_rails_autotest.rb, it appears as though both are geared towards rails (perhaps even rspec on rails). cheers, jean-pierre [1]
2006 Nov 08
1
controller.session not same as session?
> context "A user logging out" do > fixtures :users > controller_name :account > > setup do > login_as :quentin > users(:quentin).remember_me > request.cookies["auth_token"] = cookie_for(:quentin) > end > > def logout > get :logout > end > > specify "should unset :user in session" do
2007 Nov 20
5
Autotest rspec issues
I''m having trouble getting autotest to run "out of the box" with rspec. I''ve got a Leopard setup with Zentest 3.5.0, rspec on trunk, and rails 2.0PR. No ".autotest" file. There are a couple of issues: 1. Running ''autotest'' inititally yields a command not found for "spec --diff unified etc etc". This seems to be an old issue but
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
2007 Sep 25
4
Autotest with RSpec Rails and Engines
Hi We have a Rails project using an engine which I want to run autotest with rspec against. So the project specific specs are in the specs directory but the common specs are in the specs directory of the engine plugin (e.g. vendor/plugin/engine/specs) Just wondering where I would be looking to change configuration so that autotest will also look for the specs in the engine directory?
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 Dec 29
2
needs to have method `_load'
I''m getting an exception that I''m fairless clueless about. It occurs when I run a "create" action but neither my action or before filters are hit before this exception. I''m hoping someone can give me a clue. I suspect it has to do with marshalling objects in the session - maybe TzTime is not capable of being stored in the session. I hope that''s not the
2006 May 17
12
Help with Apache config
I have been attempting for days to configure Apache for Rails. I have read forums, followed How-To''s all in vain. I am hoping someone can help me out. I am getting the Rails Welcome screen, but when trying to go to any other url, I get the 500.html message. Take a look for yourself at http://66.139.78.237 and click on "about your application''s environment".
2007 May 29
4
rspec and autotest (was: questions rspec on rails)
Do have the latest versions? RSpec-1.0.3 ZenTest-3.6.0 ---------- Forwarded message ---------- From: Jonathan Linowes <jonathan at parkerhill.com> Date: May 29, 2007 11:47 AM Subject: Re: [rspec-users] questions rspec on rails To: rspec-users <rspec-users at rubyforge.org> Hi, I should have mentioned I already did that. Here''s my spec.opts file --colour --format progress
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:
2006 Jun 06
14
How can I set the session in a functional test?
Hey :) I need to simulate a login in my functional test, otherwise I can''t GET nor POST to the action. I need to set the session key "logged_in_user_id". I tried this inside the setup() method: session[''logged_in_user_id''] = 1 But that throws: TypeError: can''t convert String into Integer Any ideas? Thanks, Rob -------------- next part
2010 Aug 17
1
DetachedEval Issues
Hello everyone, I have been attempting to make use of the newly implemented detachedEval functionality and I am having a few teething issues. My code works fine when tested with both the Client and the Server on a single machine, but issues arise when I run them separately.Possibly because the local / local connection is running voer a Unix socket rather than tcp proper? Rsession*
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
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
2006 Dec 31
2
what''s with the response.should_be_xxxx stacktrace?
If I do get :index response.should_be_success I get about 20k of marshalled dumpage that starts like #<ActionController::TestResponse:0x390443c @body=\"<html><body>You are being <a href=\"http://test.host/carts/1\">redirected</a>.</body></html>\", @assigns=[], @redirected_to={:action=>\"show\", :id=>1},