Displaying 20 results from an estimated 100 matches similar to: "Functional Testing Anomoly"
2006 Sep 09
2
search_each segmentation fault and parser anomoly
The included test script turned up the following anomolies (run
against Ferret 0.10.3, but had same problems with 0.10.2):
1. When the content word is not in the index the inclusion of a
wildcard file term causes search_each to throw a segmentation
fault.
$ ./test.rb zzz file:*.txt
query: +content:zzz +file:*.txt
./test.rb:28: [BUG] Segmentation fault
ruby 1.8.4 (2005-12-24)
2006 Jan 10
1
Can somebody explain when to reload an ActiveRecord
Hi all,
I''ve the following test method in my controller_test which increment the
''qty'' attribute in a has_many association, ''sa_report_products''. The
''item_count'' method returns the sum of all qty''s in ''sa_report_products'':
def test_add_product_to_report
sa_rpt = SaReport.find(1)
assert_equal 3,
2005 Apr 29
2
problem installing login generator on windows
Hi,
I had a non-fatal problem installing the login generator on Windows w/
rails 0.12.1. Has anyone else run into this or know what''s wrong?
c:\devel\ruby>gem install --source http://dist.leetsoft.com login_generator
c:\devel\ruby>"c:\devel\ruby\bin\ruby.exe" "c:\devel\ruby\bin\gem"
install --source http://dist.leetsoft.com login_generator
Attempting local
2005 Mar 05
3
login generator problem
I am trying to use the login generator, but I keep
getting the following error when I run "generate login
Account":
/usr/lib/ruby/gems/1.8/gems/rails-0.10.0/lib/rails_generator/base.rb:84:in
`manifest'': No manifest for ''login'' generator.
(NotImplementedError)
from (eval):3:in `__send__''
from (eval):3:in `manifest''
from
2006 Jul 13
3
payment gem, server anomolies
so i have the payment gem working perfectly in our app, running locally
on my system.
uploaded a copy of the app file structure to our server (a rimu rhel3),
but now the payment gem is unresponsive. it throws exceptions with no
error message.
i''m looking for a suggestion how to debug this.
running updated gems and versions on both systems. they seem identical,
unless i''m
2005 Oct 28
0
Yum/Update anomolies: not a problem?
Today, got a wild hair and decided to check the update logs.
I don't know why I want to destroy my perfectly reasonable sense of
complacency at my advanced age... OOPS! Humor, sorry, retracted.
Anyway, after googling and reading about half the posts related to the
two sets of messages below, I have reached the tentative conclusion that
this is not a major problem. Is this assessment correct?
2012 Nov 26
8
why functional test does not get failure?
The test:
test "should get new" do
get :new, :room_id => @room.name
assert_template(:ne)
end
the template new does not exists but the test does not get failure.
Why?
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2005 Dec 18
1
assert_template fails?
Hi All,
I have a seemingly simple problem - but can''t figure out the problem. I
have a simple functional test like so:
def test_should_show_search_dropdown
get :index
assert_response :success
assert_template :search
end
Inspite of having search.rhtml in /app/views/layout, it fails with an error:
1) Error:
test_should_show_search_dropdown(SearchControllerTest):
2006 Jul 17
5
Functional Tests misbehaving with Globalize
Howdy all
Apologies to the folks subscribed to the globalize list for dual
posting this message...
I''ve got a project running globalize and rails 1.1.4, and I''ve only
recently adopted a strong love for testing. Now my models are 100%
tested (I must note that I do not make use of any translations in the
database yet), and I''ve now started with functional tests before
2006 May 13
0
integration: assert_template() always fails...
Hi Coders :-)
Maybe somebody can help...
My integration tests always fail when using assert_template()
class ShopTest < ActionController::IntegrationTest
def test_very_simple
get("/shop/index")
assert_success
assert_template("/shop/index")
end
end
the "/shop/index" is a valid url which renders flawlessly in the browser. however, the test
2006 May 06
1
depot test-driven development exercise
(I posted this yesterday but within 20 minutes my thread was hijacked
so I''m not sure anyone really saw this.)
I''ve been working my way through the Agile book and just completed
the depot sample application. I learned quite a bit along the way.
On page 171 we are led through the creation of a test (that fails)
for new code. The new code (a search function) is left as an
2007 Feb 06
2
Testing RJS actions
Hi all !
This is my test:
def test_destroy_xhr
Article.expects(:find).with("1").returns(@article = mock("article"))
@article.expects(:destroy).returns(true)
delete :destroy, :id => 1, :format => :js
assert_template "destroy.rjs"
end
And my implementation:
def destroy
@article.destroy
respond_to do |format|
format.html {
2006 May 05
1
Agile Rails (1st edition), depot TDD "exercise"
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I''ve been working my way through the Agile book and just completed
the depot sample application. I learned quite a bit along the way.
On page 171 we are led through the creation of a test (that fails)
for new code. The new code (a search function) is left as an exercise
for the reader. Well, I think I solved it but I''m not
1999 Nov 22
2
samba not logging windows user names
Hi,
Is it possible that samba logs the windows username of the person that
is connecting to a share. On many shares I use 'force user = testuser'.
In the log I only see the messages "connect to service test as user
testuser". This gives me only the username smbd should become.
I also tried logging to a file which contains '%U' but this give me very
often the
2006 Jan 18
1
The 30 year old *Ruby* Virgin
All,
Apologies for the simplicity of the problem but getting started with
InstantRails.
Does anyone have any experience of setup in this way?
Get to the:
* Click on the Start SCGI button.
* Once the SCGI server says that it is listening to 127.0.0.1:9999,
open
our browser and go to:
www.mycookbook.com
Unfortunately once I press the button, a DOS cmd window pops up and
2011 Dec 02
2
Missing sources in CentOS 6.0
Hello everyone,
In the 6.0 release, I have found a gap in the provided source under the SRPMS/ directories on the mirrors.
Let's take the 'bash' source as the first example. The version of bash that I find in the binary x86_64 directories is:
http://mirror.centos.org/centos-6/6.0/os/x86_64/Packages/bash-4.1.2-3.el6.x86_64.rpm
One would expect to find the source to that binary at:
2005 Jun 05
2
pxelinux and DISPLAY
I've begun tinkering with syslinux v3 and have uncovered an anomoly with
the DISPLAY file when called by pxelinux.0.
If I have:
DISPLAY boot.msg
With an "^Xsplash.lss\n" in the file boot.msg (exactly: 18 73 70 6C 61
73 68 2E 6C 73 73 0A) file, it will fail to load the rle image. And
produce some goofy results in the tftpd log:
Jun 5 06:27:06 pxe in.tftpd[24649]: RRQ from
2006 May 04
6
second assert_tag failling in rails integration test
Hi all,
I''m fairly new to rails and ruby, but I''ve come across an interesting
glitch and I''m not sure whether I''ve just got something wrong with my
assumptions or if it really is an error in the underlying framework...
I''ve created a bare-bones set of tests to show you where the problem is.
What follows are the steps I went through to reproduce the
2005 Dec 23
6
Agile book - test error
Hi all,
I get an error when testing the "store_controller_test.rb"
The troublesome line is in the test below:
def test_add_to_cart
get :add_to_cart, :id => @version_control_book.id <<<
cart = session[:cart]
assert_equal @version_control_book.price, cart.total_price
assert_redirected_to :action => ''display_cart''
follow_redirect
2003 Jul 04
1
Win4Lin, MYOB, Samba & Performance
I'm having performance problems that seem to involve SAMBA in the
equation so I thought I'd ask if there was something obvious I'm
stuffing up or a known anomoly.
A mate of mine runs MYOB Premier (the brilliant (not!) multi-user
accounting package which claims to not support SAMBA (or visa versa).
I've had it running glitch free for two years on a Samba share off a
linux box.