Displaying 2 results from an estimated 2 matches for "test_search".
Did you mean:
res_search
2006 Feb 06
9
tests fine, but fail under rake
...fine, e.g.:
D:\User\Code\ruby\prometheus>ruby
test\functional\story_comments_controller_test
.rb
Loaded suite test/functional/story_comments_controller_test
Started
.........
Finished in 2.37 seconds.
9 tests, 65 assertions, 0 failures, 0 errors
However when I run rake I get this:
2) Error:
test_search(StoryCommentsControllerTest):
ActionView::TemplateError: Couldn''t find Story without an ID AND (status
= ''approved'')
On line #2 of app/views/story_comments/list.rhtml
1: <%unless params.has_key?(:search_terms)%>
2: <%= render_component(:controller => '...
2006 Dec 01
4
Functional Testing AAF Plugin
...on this would be greatly appreciated.
FIXTURE
********
article_001:
id: 1
title: some valid article title
body: This is a valid article entry with
some images and stuff.
FUNCTIONAL TEST
******************
def test_search
get :search, :q => "some valid article title"
assert_equal 1, assigns(:articles).size
end
MODEL
*******
acts_as_ferret( { :fields => { ''title'' => { :boost => 2 },
''body'' => { :boost => 1.5 },...