Displaying 20 results from an estimated 500 matches similar to: "Errors with my generate"
2008 Jan 25
0
cruisecontrol.rb setup problems
Hi all,
We are trying to set up cruisecontrol.rb on a windows machine. We have
ruby, rails, cruisecontrol.rb (win32 versions).
We have added the project, run throught the tests. The tests run 100%
successfully.
After the tests run, it apparently uses unit test collector to collect
through some tests which have require on "cc:build" which it can''t find
anymore and spits
2005 Mar 07
6
Automatic timestamping in join tables [596]
Hi,
A few days ago I submitted the following ticket
http://dev.rubyonrails.com/ticket/596
asking that ActiveRecord::Timestamp also apply for the join tables of
habtm.
The answer was that it was left for milestone 1.x, and since I think
that without this functionality rails 1.0 would be incomplete, I''m
raising the issue here to discuss it.
My use case is very simple, I
2007 Oct 08
0
Can''t debug specs in Netbeans
Hi. I can''t seem to get debugging of specs working in Netbeans. AFAIK, I''m
supposed to be able to just do Command+Shift+F5 with the spec open in the
editor but i get this error:
/Users/admin/src/expresso/vendor/plugins/rspec/lib/spec/test/unit/autorunner.rb:2:in
`remove_method'': method `process_args'' not defined in Test::Unit::AutoRunner
(NameError)
2006 Apr 11
0
Unit test is failing when I am using SQLite
Hi,
There seems to be an issue with SQLite adapter. Any idea what is causing
it?
document_test.rb contains default scaffold and works fine with MySQL but
fails with SQLite. Other unit tests work fine with either DB.
Sergei Serdyuk
Red Leaf Software LLC
http://www.redleafsoft.com
document_test.rb:
require File.dirname(__FILE__) + ''/../test_helper''
class DocumentTest <
2006 Feb 28
0
Sending email in functional test times out
I''m writing a functional test to see if an email was generated from a
particular action. The action of course sends an email at some
point..but the test says it times out.
config.action_mailer.delivery_method is set to :test in
config/environments/test.rb, not sure why it would be ignoring that.
If I take out my email config from environment.rb, the test runs fine.
Here''s the
2007 Dec 16
0
Integration Testing - hang with post parameters
I''m getting some weirdness with integration testing. The following
works fine if I don''t have parameters, but as soon as I add parameters I
get a hang. Not sure exactly where it is hanging.
NO HANG
post ''user/register''
HANG
post ''user/register'', :user => {:name => ''John Doe'', :email =>
2006 Aug 03
0
problem with Rails: cgi.rb:342
here is the error i am getting while trying to do functional /
integration tests. can someone tell me if this error has been fixed, and
if so, how do i get the fix ? i am currently running 1.8.4 of ruby
Loaded suite test/integration/stories_test
NoMethodError (private method `gsub'' called for 0:Fixnum):
c:/ruby/lib/ruby/1.8/cgi.rb:342:in `escape''
2007 Jun 02
2
Unit tests breaks with sqlite
Hi,
I''m using an sqlite3 database with Rails and have some trouble running
unit tests
What I''ve done is
* rails my_app
* edited database.yml to use sqlite3 adapter, db/my_app_development
and db/my_app_test
* ruby script\generate model user
* edited model
class User < ActiveRecord::Base
validates_presence_of :name
validates_uniqueness_of :name
end
*
2007 Jul 12
1
form_tag doesn't accept a string anymore in edge rails?
So, here''s the offending line. Note that I''m using edge rails.
form_tag verifications_path(@user), :method => :post do
verifications_path(@user) returns a string like "/users/3/
verifications". That eventually gets sent to url_for, which expects a
hash. And then it blows up.
It''s especially disconcerting since the documentation shows form_tag
as
2006 Nov 07
1
Memory consumption too high
Hi,
I''m having trouble with ferret and AAF blowing up with a NoMemoryError.
Sometimes when I add documents inside my rails app. Ferret starts
consuming huge amounts of memory. I''m on a machine with 2GB of memory
and it still runs out of memory. Sometimes I''m able to run
MyObject.rebuild_index and the memory doesn''t move up at all. However,
sometimes it
2007 Jan 17
8
Mocha Mock''s hanging on after test run?
Hi guys,
I''m running mocha (0.3.2) against Rails core and just found an issue
where the mock doesn''t go away after the test is run.
For example:
def test_reset_bang_doesn_reinstall_named_routes
ActionController::Routing::Routes.named_routes.expects(:install).never
@session.reset!
end
def test_zzz
puts ActionController::Routing::Routes.named_routes.inspect
2005 Dec 23
2
SQLite in-memory
I left ":memory:" in database.yml for testing and the most simple
tests in the Agile book do not work (see trace below for test_truth).
Since that''s what comes with the distributed database.yml I suppose
it''s me doing something wrong.
Did someone get SQLite ":memory:" working? How does it grab the schema?
-- fxn
% rake test_units
(in
2009 Jun 07
6
Missing Template when testing with the Brain Buster Captcha partial
When I run my functional tests, they throw an error with the following
message:
ActionView::TemplateError: Missing template /_captcha.erb in view path
app/views:test/vendor/plugins/brain_buster/views/brain_busters
On line #23 of app/views/contacts/_form.html.erb
20: <%= f.label :message %><br />
21: <%= f.text_area :message %>
22:
2005 Dec 22
13
in-memory SQLite for testing
I am following the rails book, and arrived to the section about
testing. The test database is configured as:
test:
adapter: sqlite3
database: ":memory:"
and I get this error with the simple product test:
% ruby test/unit/product_test.rb
Loaded suite test/unit/product_test
Started
E/usr/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.1.0/lib/sqlite3/
errors.rb:94:in
2006 Apr 18
7
Functional test, pls help!!!!
Hi guys, recently encountered this funny problem which i really dunno
wat happen...
I have been trying on it for the past few days and just doesnt work.Hope
you guys can give me some enlightenment.
Problem:
The functional test doesnt seems to be able to recognise one of my
model, and when i run the test, it keeps giving me the error of"You have
nil object when you don''t expect
2005 Jul 05
2
Salted hash login generator (verification problem?)
Hi all,
I hope someone can help with what is probably a simple newb
installation mistake on my part. I''m having a couple of problems with
the salted hash login generator. I installed it following the
quickstart guide, and the unit tests work like a charm. There are two
errors and a failure on the function tests, though; the verified field
seems to be involved in at least one of
2006 Jun 15
6
Sqlite3 test fails in Rails app
Greetings:
I am using Sqlite3 database with my Rails app. When I try and run "rake
tests" for the app it always fails with the error:
** Invoke default (first_time)
** Invoke test (first_time)
** Execute test
** Invoke test:units (first_time)
** Invoke db:test:prepare (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:test:prepare
** Invoke
2006 May 29
19
WYSIWYG Editors and Rails
Hi everyone,
I''m currently investigating re-writing our School CMS application in
Rails and the only drawback I can see is there isn''t an ample supply (if
any) of WYSIWYG In-browser editors written with a raw Ruby backend. We
currently use KTML4 which is written with PHP as a base. I''m interested
to hear from anyone who''s integrated a PHP based editor into
2012 Nov 21
0
[LLVMdev] Disable loop unroll pass
Hi Brendon, Krzysztof,
Thanks for your responses.
On 21/11/2012 20:49, Brendon Cahoon wrote:
> I just wanted to add to Krzysztof's response. I'm not sure if you're
> referring to the case when a compile-time trip count loop is completely
> unrolled or for a loop with a run-time trip count, which would be partially
> unrolled. For Hexagon, if we partially unroll a loop,
2016 Oct 07
0
Alternating boot default entry every reboot
Not sure iso/syslinux directly has a way to do this, but I did find a
way to have a system act like you're saying.
I don't want it to automatically alternate, I want to have a command
to run that will change the default. (Remote system.)
=====
#!/bin/bash
sudo bash -c "sed -i '0,/^DEFAULT .*$/{s/^DEFAULT .*/DEFAULT
terra-snapper/}' /boot/syslinux/syslinux.cfg"
sudo