Displaying 20 results from an estimated 20 matches for "test_truth".
Did you mean:
test_auth
2006 Jan 10
2
Default unit tests failing?
I''ve got a strange issue. My default unit tests are failing for two models. I
haven''t changed _anything_ in the test. Here''s an example:
Output:
1) Error:
test_truth(ShippingCostTypeTest):
NoMethodError: You have a nil object when you didn''t expect it!
You might have expected an instance of Array.
The error occured while evaluating nil.find
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/
lib/active_record/fixtures.rb:456:in
`shipping_cost_types...
2009 Feb 21
10
Problem with test_truth
hello all,
i have a problem with test_truth.
require ''test_helper''
class MyDataTest < ActiveSupport::TestCase
def test_truth
assert true
end
end
this should ok without failures or errors. but it failure:
1) Error:
test_truth(MyDataTest):
ActiveRecord::StatementInvalid: Mysql::Error: Table
''alldataserv...
2006 May 11
12
Verifying Good Setup of RoR + PostgreSQL
I''ve been reading the RoR tutorials and wiki help stuff, but I''m stuck. :(
I''ve got RoR installed properly and get the "Welcome aboard! You''re
riding the rails." I have an "article" controller, "article" model, and
both an "article" and "articles" views (one is a remnant, I think, and
no longer needed) (the
2006 Oct 26
2
Mocha and SimplyHelpful
...the Mocha plugin and the Rails
SimplyHelpful plugin.
For some reason the dom_id method from SimplyHelpful is not being
found in my views when the Mocha plugin is installed. The dom_id
method if used in the controller works properly.
This is the error I get when running the tests:
1) Error:
test_truth(HmmControllerTest):
ActionView::TemplateError: undefined method `dom_id'' for #<#<Class:
0x3a529ec>:0x3a529c4>
On line #2 of app/views/hmm/index.rhtml
1: <%= @car_dom_id %>
2: <%= dom_id(@car) %>
Here''s my controller:
class HmmController...
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 /Users/fxn/study/rails/depot)
/usr/local/bin/ruby -Ilib:test &...
2005 Dec 22
2
nonstandard postgresql sequence names
...#39;'/../test_helper''
class SponsorTest < Test::Unit::TestCase
self.use_transactional_fixtures = true
fixture :sponsors, :table_name => "sponsor"
fixture :eligibilities, :table_name => "topic_eligibility"
# Replace this with your real tests.
def test_truth
assert_kind_of Sponsor, sponsors(:first)
end
end
(The "fixture" method comes from a patch that allows me to specify
non-standard table names--the table in this case is called sponsor, not
sponsors).
The sponsor table''s primary key column is called "sponsor_key"...
2004 Dec 09
3
fixture problem, TypeError: nil is not a symbol
...ne seen something this before? Any idea
what could be going on here?
The following ruby-talk thread may or may not be relevant:
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/95301.
Thanks much,
John-Mason
Sample Stack Trace:
---------------------------------------
1) Error:
test_truth(ArtifactTest):
TypeError: nil is not a symbol
./test/unit/../../config/environments/../../vendor/activerecord/lib/active_record/fixtures.rb:168:in
`const_get''
./test/unit/../../config/environments/../../vendor/activerecord/lib/active_record/fixtures.rb:168:in
`find''
./test...
2006 Apr 25
3
rake test:units fails on Postgresql due to nil
Following the directions in:
http://www.xml.com/pub/a/2006/04/19/rest-on-rails.html?page=2
I get through the:
rake db:migrate
With the tables created properly but then when I run the:
rake test:units
I get a failure:
ActiveRecord::StatementInvalid: RuntimeError: ERROR C23502 Mnull
value in column "title" violates not-null constraint FexecMain.c
L1750
2005 Dec 30
1
Problems with Testing (Depot) demo app in Agile Rails book
...ling uniformly (and with voluminous messages) -
see example below
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\rails\depot>ruby test/unit/order_test.rb
Loaded suite test/unit/order_test
Started
EE
Finished in 0.109 seconds.
1) Error:
test_truth(OrderTest):
ActiveRecord::StatementInvalid: Mysql::Error: Lost connection to MySQL
server during query: DELETE FROM orders
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_adapters/abstract_adapter.rb:88:in
`log''
c:/ruby/lib/ruby/gems/1.8/gems/activ...
2006 Dec 06
0
Testing your workers
...lper''
require "#{RAILS_ROOT}/lib/workers/market_summary_worker"
require "#{RAILS_ROOT}/vendor/plugins/backgroundrb/lib/backgroundrb.rb"
require ''drb''
class MarketSummaryWorkerTest < Test::Unit::TestCase
# Replace this with your real tests.
def test_truth
assert MarketSummaryWorker.included_modules.include?(DRbUndumped)
end
end
Throws error:
------------
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:123:in
`const_missing'': uninitialized constant Worker (NameError)
from /home/hemant/ubac_we...
2006 May 03
1
Test not Reseting
...= User.new({:username => ''cwinslett'', :password
=> ''testpassword''})
@chris_logged_in = @chris_logged_in.try_to_login
@sherri = User.find(2)
@delete_victim = User.find(4)
end
# Replace this with your real tests.
def test_truth
assert_kind_of User, @chris_logged_in
assert_kind_of User, @sherri
assert_kind_of User, @investor
end
def test_destroy
@delete_victim.destroy
assert_raise(ActiveRecord::RecordNotFound){User.find(@delete_victim.id)}
end
def test_create_user
@tom_lawyer =...
2006 Apr 11
0
Unit test is failing when I am using SQLite
...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 < Test::Unit::TestCase
fixtures :documents
# Replace this with your real tests.
def test_truth
assert true
end
end
error:
C:/rails/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.1.0-mswin32
/lib/sqlite3/errors.rb:94:in `check'': SQL logic error or missing
database (SQLit
e3::SQLException)
from
C:/rails/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/sqlite...
2006 Nov 23
0
TypeError on loading fixtures for integration tests
...res(fixtures_directory, table_names,
class_names = {})
# puts("fixtures dir: "+(fixtures_directory.nil? ? "nil" :
fixtures_directory))
It''s only nil for my integration tests. I''m on rails edge. Does anyone
know what I''m doing wrong here?
1) Error:
test_truth(NewSiteTest):
TypeError: can''t convert nil into String
/usr/home/daniel/dev/config/../vendor/rails/activerecord/lib/active_record/fixtures.rb:252:in
`join''
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google...
2008 Apr 09
1
rspec SQLException problem
...nments
WHERE 1=1
and
SQLException: SQL logic error or missing database
I tried running rake db:test:clone, but that didn''t fix it.
Here''s the unit test file:
require File.dirname(__FILE__) + ''/../test_helper''
class StudentTest < ActiveSupport::TestCase
def test_truth
assert true
end
end
I''m on Windows XP; ruby is version 1.8.6; rails is version 2.0.2; db is
sqlite3, version 3.5.6.
Any help here would be greatly appreciated!
thanks
Win
--
Posted via http://www.ruby-forum.com/.
2005 Jul 22
3
testing application_helper.rb
I am trying to run some functional (or are they unit?) tests on my
application_helper.rb. So far, I''ve not had any success in being able
to call the methods defined in application_helper.rb.
Here is my app/test/functional/helpers.rb
require File.dirname(__FILE__) + ''/../test_helper''
require File.dirname(__FILE__) +
2007 Jul 12
0
[retry] fixture_references: "Mysql::Error #HY000"? (fwd)
I''m resending this with additional information, as I''ve had no
response. I''ve been trying to use the fixture_references plugin,
and I seem to be getting lots of:
1) Error:
test_truth(DeviceTest):
ActiveRecord::StatementInvalid: Mysql::Error: #HY000Field ''description_id'' doesn
''t have a default value: INSERT INTO devices (`id`) VALUES (2)
/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection
_adapters/abstract_adapter.rb:128:...
2006 Jan 02
3
rake test_units not loading any fixtures
Hello All,
If I run my unit tests individually using Ruby, they all work correctly.
However, if I try to run them using "rake test_units", I get a bunch of
error messages.
The error messages appear to be caused by rake not loading any of the
fixtures into the test database.
I am using PostgreSQL on Windows.
Does anyone have any suggestions?
Many thanks,
Bruce.
--
Posted via
2005 Dec 15
6
Code from famous RoR video?
Does anyone know where I could get text file with the code from the
famous video where they create a Weblog in 15 minutes -- The one that''s
here: href="http://rubyonrails.com/screencasts?
(I can''t just watch it here at work, and I''d like to avoid having to
re-type everything in any case.)
Thanks!
--
Posted via http://www.ruby-forum.com/.
2009 May 13
1
[PATCH server] Cloud UI V1 (readonly).
...oud_controller_test.rb
new file mode 100644
index 0000000..864400c
--- /dev/null
+++ b/src/test/functional/cloud/cloud_controller_test.rb
@@ -0,0 +1,8 @@
+require 'test_helper'
+
+class Cloud::CloudControllerTest < ActionController::TestCase
+ # Replace this with your real tests.
+ def test_truth
+ assert true
+ end
+end
diff --git a/src/test/functional/cloud/dashboard_controller_test.rb b/src/test/functional/cloud/dashboard_controller_test.rb
new file mode 100644
index 0000000..3ddb6ca
--- /dev/null
+++ b/src/test/functional/cloud/dashboard_controller_test.rb
@@ -0,0 +1,8 @@
+require &...
2009 Jun 30
0
[PATCH server] permit many-to-many vms / networks relationship
...oor, Boston,
+# MA 02110-1301, USA. A copy of the GNU General Public License is
+# also available at http://www.gnu.org/copyleft/gpl.html.
+
+require File.dirname(__FILE__) + '/../test_helper'
class NetworkTest < ActiveSupport::TestCase
- # Replace this with your real tests.
- def test_truth
- assert true
+ fixtures :networks
+ fixtures :vms
+ fixtures :hosts
+ fixtures :nics
+ fixtures :boot_types
+
+ def setup
+ end
+
+ def test_vlan_invalid_without_number
+ vl = Vlan.new({:name => 'testvlan', :boot_type_id => 2})
+ flunk "Vlan without number shoul...