Displaying 20 results from an estimated 3000 matches similar to: "functional tests"
2008 Jan 12
0
Can't test application controller methods in functional tests?
I have two methods in application controller that I want to test from
ForumController:
-----------------------
class ApplicationController < ActionController::Base
...
def logout
session[:username] = nil
session[:admin] = nil
redirect_to(request.request_uri)
end
...
def home
redirect_to(:controller => ''forum'', :action =>
2006 Sep 26
0
some help with functional testing of nested routes
I have the following functional test in test/functional for testing my
products_controller:
require File.dirname(__FILE__) + ''/../test_helper''
require ''products_controller''
# Re-raise errors caught by the controller.
class ProductsController
def rescue_action(e)
raise e
end
end
class ProductsControllerTest < Test::Unit::TestCase
fixtures
2009 May 18
0
[PATCH server] fixed functional tests after recent controller refactoring and managed node controller fixes.
Signed-off-by: Scott Seago <sseago at redhat.com>
---
src/test/functional/host_controller_test.rb | 41 --------------------
.../functional/managed_node_configuration_test.rb | 14 ++++---
src/test/functional/nic_controller_test.rb | 8 ----
src/test/functional/permission_controller_test.rb | 15 ++++---
src/test/functional/quota_controller_test.rb | 2 +-
2006 Feb 01
3
Test data life cycle confusion
Hi,
It states on page 140 of Agile Web Development with Rails:
Here?s the bottom line: even if a test method updates the test database,
the database is put back to its default state before the next test method is
run. This is important because we don?t want tests to become dependent
on the results of previous tests.
Well, I''ve been running into a brick wall with some functional tests
2008 Jul 24
0
Re: Simple functional test fails
Quoting txapelgorri <ibon.castilla-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:
>
> Hi there:
>
> I''m starting with rails and I founded and issue that I can''t figure
> out how to solve:
>
> - This is the controller:
> class StoriesController < ApplicationController
> def index
> @current_time = Time.now
> @story =
2012 Mar 22
1
Rspec not loading fixtures
I am taking over a code base and am trying to run the tests. I am
somewhat new to RSpec so this might be a trivial problem.
Basically I can tell that the fixtures are not getting loaded. All 100
tests fail with a similar error.
But I don''t know why. Below is the code, with my narrative with ***
before it... Can you see anything or give me a clue where to look. So
far I am coming up
2006 Jun 29
0
@response.body accumulating in functional tests?
I have two functional tests for my user controller:
def test_bad_registration
post :register, :email => "tester1@foo.com"
assert_response :success
assert_not_nil @response.body =~ /^\<error/
assert_nil assigns[''user'']
end
def test_good_registration
@response.body = nil
post :register, :username => "tester",
2006 May 16
3
Testing How To Question
I''m using the functional test for a method like this:
def test_create
post :create, :phase => ''copynew'', :id => 1
assert_response :success
assert_template ''create''
assert_tag :content => ''New Item''
assert_not_nil @item
end
This posts a request to the create method in the controller. Is there
any way to look
2013 Nov 04
1
Redmine maintenance 11/04 7PM-8PM PST
Hello,
I''m writing to inform you that projects.puppetlabs.com will be undergoing maintenance this evening from 7PM to 8PM PST. There will be a short period of downtime as the application is shut down and minor additional functionality is added. I will send out follow up communication when the maintenance has been completed.
Thank you,
Matt Kirby - kirby@puppetlabs.com
--
You received
2006 Jan 03
3
Rails Noob Question
Apparently the first time I posted this, it was tacked onto the end of
another thread. Please pardon my repost. Won''t happen again.
--------
Howdy. I''m just getting into Rails, and really enjoying it! I''m coming
from the .NET world, so I''ll embarrassedly admit that I''m running it on
winXP and even using SQLServer (for now, may switch to mysql
2011 Dec 13
0
[LLVMdev] make check-all failing 18 tests with --enable-optimized
Thanks for this, I noticed this recently also (and internally expect it to
fail).
-----Original Message-----
From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On
Behalf Of Patrik Hägglund H
Sent: 13 December 2011 08:31
To: Brendan Kirby; Evan Cheng
Cc: llvmdev at cs.uiuc.edu
Subject: Re: [LLVMdev] make check-all failing 18 tests with
--enable-optimized
I have now made
2011 Dec 13
2
[LLVMdev] make check-all failing 18 tests with --enable-optimized
I have now made a report at http://llvm.org/bugs/show_bug.cgi?id=11552.
Patrik Hägglund
-----Original Message-----
From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of Patrik Hägglund H
Sent: den 13 december 2011 08:07
To: Brendan Kirby; Evan Cheng
Cc: llvmdev at cs.uiuc.edu
Subject: Re: [LLVMdev] make check-all failing 18 tests with --enable-optimized
I
2012 Jul 05
0
tests , assertion output value always <>
no problem running my tests ( units , functionals ) but when
assertion failed , I never see any assertion output value, it''s always
<> and expected also is <>
i.e. :
=> 33: assert ability.can? :index, User
34: get :index
35: assert_response :success
36: assert_not_nil assigns(:users)
<> expected but was
<>
I must have some
2011 Dec 13
0
[LLVMdev] make check-all failing 18 tests with --enable-optimized
On Tue, 2011-12-13 at 08:23 -0800, Brendan Kirby wrote:
> On 12/13/11 01:09, Eli Friedman wrote:
> > On Mon, Dec 12, 2011 at 6:26 PM, Brendan Kirby <bkirby at mips.com> wrote:
> >> As part of our automated testing, I'm running make check-all to watch
> >> for failures. One of my builds uses the --enable-optimized option to
> >> configure. When I build
2011 Dec 13
0
[LLVMdev] make check-all failing 18 tests with --enable-optimized
I don't know about the LLVM errors, but I have seen the Clang error before. It occurs because the test is not path independent. In Preprocessor/macro_paste_c_block_comment.c you have 'nog grep scratch', which means that you can't have 'scratch' in your path. I think this should be reported as a bug.
Regards,
Patrik Hägglund
-----Original Message-----
From: llvmdev-bounces
2006 Jun 14
0
Functional test problem
Embarrassingly late (apps already well advanced), have decided top get
to grips with testing and am having a week hopefully covering everything
I''ve already coded (so far it''s been worth it -- found a couple of bugs
might not have found otherwise).
But having a bit of a prob with a functional test. I''m trying to
enumerate through through a list of users in a
2010 May 18
2
Can I use qemu-dm instead of qemu?
XEN of RHEL5.x DOM0 provides a qemu-dm command at
/usr/lib64/xen/bin/qemu-dm, Can I run libguestfs with it?
I have tried run libguestfs with kqemu, but it always cause system hang.
Regards
Kirby Zhou
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libguestfs/attachments/20100518/50c18dd7/attachment.htm>
2011 Dec 13
2
[LLVMdev] make check-all failing 18 tests with --enable-optimized
On 12/13/11 01:09, Eli Friedman wrote:
> On Mon, Dec 12, 2011 at 6:26 PM, Brendan Kirby <bkirby at mips.com> wrote:
>> As part of our automated testing, I'm running make check-all to watch
>> for failures. One of my builds uses the --enable-optimized option to
>> configure. When I build the latest trunk, I'm now seeing 18 failing
>> tests:
>>
2010 Aug 08
1
guestfish/libguestfs takes legacy qemu instead of kvm?
On Sun, Aug 08, 2010 at 12:05:58PM +0800, Kirby Zhou wrote:
> guestfish takes legacy qemu instead of kvm?
> ]# rpm -q libguestfs --requires | fgrep qemu
> qemu-system-x86 >= 0.10.5
To make it clear, this is EPEL-5. There was some still unresolved
problem with adding a dependency on KVM:
https://fedorahosted.org/rel-eng/ticket/2982
As a result, we have to depend on qemu (software
2011 Dec 13
2
[LLVMdev] make check-all failing 18 tests with --enable-optimized
On 12/12/11 19:29, Evan Cheng wrote:
> On Dec 12, 2011, at 6:26 PM, Brendan Kirby wrote:
>
>> As part of our automated testing, I'm running make check-all to watch
>> for failures. One of my builds uses the --enable-optimized option to
>> configure. When I build the latest trunk, I'm now seeing 18 failing
>> tests:
>> Clang ::