Displaying 4 results from an estimated 4 matches for "post_test".
Did you mean:
host_test
2006 Mar 20
2
Testing Models And Fixtures
...the following and it does
not work... even though I don''t see why it shouldn''t.
===========
posts.yml
===========
basic_post:
id: 1
title: Title
body: Body
created_at: 2006-02-01 00:00:00
updated_at: 2006_02-02 00:00:00
===========
post_test.rb
===========
require File.dirname(__FILE__) + ''/../test_helper''
class PostTest < Test::Unit::TestCase
fixtures :posts
def setup
@post = Post.find(1)
end
def test_create
assert_kind_of Post, @basic_post
assert_equal @basic_post.id, @post...
2010 Jul 13
0
Unknown Method key? error in Rails 2.3.8 Unit testing
I was writing unit tests for my models for a while. After that I was
tweaking around and again continued writing unit tests.
Earlier all my unit tests were working - successfully. But now WHen I
run them, it gives me
Loaded suite unit/post_test
Started
EEEE
Finished in 0.112698 seconds.
1) Error:
test_presence_of_body(PostTest):
NoMethodError: undefined method `key?'' for #<String:0x103519a88>
2) Error:
test_presence_of_body_and_title(PostTest):
NoMethodError: undefined method `key?'' for #<String:0x1034dd4...
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/.
2006 Feb 02
4
rake test_units slow on startup
...tname lookup problem on the mac?
Thanks
% time rake test_units
(in /Users/jdf/projects/devel/www/blablog)
/opt/local/ruby-1.8.4/bin/ruby -Ilib:test
"/opt/local/ruby-1.8.4/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake/rake_test_loader.rb"
"test/unit/comment_test.rb" "test/unit/post_test.rb"
Loaded suite /opt/local/ruby-1.8.4/lib/ruby/gems/1.8/gems/rake-0.7.0/lib/rake/rake_test_loader
Started
..
Finished in 0.165222 seconds.
2 tests, 3 assertions, 0 failures, 0 errors
5.366u 1.098s 0:07.75 83.2% 0+0k 0+7io 0pf+0w
--
Jim Freeze