From 3cf76cdeeb58b44e5ed1d3c86cb598b679c8bbc3 Mon Sep 17 00:00:00 2001 From: AntonioTerceiro Date: Tue, 29 Apr 2008 03:42:34 +0000 Subject: [PATCH] ActionItem253: fixing test --- test/unit/environment_finder_test.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/unit/environment_finder_test.rb b/test/unit/environment_finder_test.rb index a941a29..207f4ac 100644 --- a/test/unit/environment_finder_test.rb +++ b/test/unit/environment_finder_test.rb @@ -1,6 +1,8 @@ require File.dirname(__FILE__) + '/../test_helper' class EnvironmentFinderTest < ActiveSupport::TestCase + + all_fixtures should 'find articles' do person = create_user('teste').person @@ -22,11 +24,10 @@ class EnvironmentFinderTest < ActiveSupport::TestCase end should 'find comments' do - finder = EnvironmentFinder.new(Environment.default) person = create_user('teste').person art = person.articles.build(:name => 'an article to be found'); art.save! - comment = art.comments.build(:title => 'comment to be found', :body => 'hfyfyh', :author => person); comment.save! - assert_includes finder.comments, comment + comment = art.comments.build(:title => 'comment to be found', :body => 'some sample text', :author => person); comment.save! + assert_includes EnvironmentFinder.new(Environment.default).comments('found'), comment end should 'find products' do -- libgit2 0.21.2