similar to: Tests not tiding up after themselves?

Displaying 20 results from an estimated 700 matches similar to: "Tests not tiding up after themselves?"

2006 Mar 23
7
Fixtures just Do Not Work for Me
Hello, I have been struggling to get fixtures to work here with no success. They just Do Not Work For Me (tm). I have created a model named Headline with the `generate'' script and modified the test/fixtumes/headlines.yml as follows ---------- gita: id: 1 author: raulseixas title: gita happened_at: 2005-01-01 00:00:00 description: gita This is the CD reissue of
2011 Jul 11
1
Finding Confidence Intervals
This is a very basic question, so please bear with me. I've been learning about AB Testing, which is largely used in internet marketing to examine the effectiveness of certain aspects of ads, websites, etc. Here's a couple links to people who want to know more about AB Testing:
2010 Dec 15
5
Having trouble testing :( "superclass mismatch" and can't load "test_helper"
I''m having trouble testing my Rails 3 application. Unit testing doesn''t work. If I try ruby article_test.rb directly, I get a "no such file to load" error, and if I try rake test:units or ruby unit/ article_test.rb I get this odd "superclass mismatch for class ArticlesController" error! I''m hoping I can get this settled... My test files were
2008 Sep 23
3
Finding distinct months using find_by_sql
Hello, I''m wondering if someone might be able to offer me a solution to the following problem that has so far stumped me. I''m trying to get the distinct months (and years) from a date field to display as a list in a view. For example, there might be a number of records stored with dates in the table ''headlines'': name date record1 21-09-2008 record2
2007 Jun 06
1
"selected" in form.select
I have a search form in my navbar where a user can select in which area he wants to search. After clicking the submit-button the results get rendered but the previous selected area is no longer selected. <%= form.select (:suchfeld, [ [''Beschreibungen'',''description''], [''Headlines'',''headline'']] ) %> I was able to
2005 May 12
0
a quick ? on using read.table()
Dear all I have a data set like following *********************** name ticker price # how to specify attributes for differet colums a ta 1 a ta 1 a ta 1 name ticker price # the extra headline is a problem a ta 1 a ta 1 b 2 b 2 b 2 b 2 b 2 c tc 3 c tc 3 name ticker price c tc 3
2006 May 04
2
Testing associations
I have a pretty simple model, articles and users. class Article belongs_to :user end class User has_many :articles end In my unit tests I want to ensure that the associations work properly. What''s the best way to do this? The obvious thing to do is a test in each model. # user_test.rb def test_add_post u = users(:first) before_articles = u.articles.count u.articles
2006 Aug 19
1
caches_page does not follow url path
I am using lighttpd. I have a controller (headlines) with a caches_page :index. When invoked via http://0.0.0.0:3000/headlines/ I find a index.html cached in the public folder. The server did not create a headlines folder and place the cached index page within the controller directory as expected. Is there a configuration detail I need to change?
2011 Sep 19
0
Weird Parameter Encoding issue in Production Rails 3.1.0
All, I''m having a weird issue with posted parameters in Rails 3.1.0. This is only happening in production and not in development. I have confirmed that when making a post, parameters are passed to the server as: utf8=%E2%9C %93&authenticity_token=jOn16Uw3oUBPQfX02nt1IN8muZf150nTt24Ic4JgPvY %3D&alert%5Btitle%5D=http%3A%2F%2Fwww&alert%5Bheadline%5D=%26headline Which looks
2006 Jan 30
3
Howto change @article.article.headline to @article.headline ?
I have to actions: def index @articles = Article.find(:all, :conditions => "un_published != ''1''", :order => "created_on desc") end and def group id = params[:id] @articles = ArticleGroup.find(:all, :include => [:group, :article], :conditions => ["articles.un_published !=
2014 Mar 20
2
[Bug 2215] New: Key fingerprint headline slightly broken with ED25519
https://bugzilla.mindrot.org/show_bug.cgi?id=2215 Bug ID: 2215 Summary: Key fingerprint headline slightly broken with ED25519 Product: Portable OpenSSH Version: 6.5p1 Hardware: All OS: All Status: NEW Severity: trivial Priority: P5 Component: ssh Assignee: unassigned-bugs at
2006 Aug 16
1
StandardAnalyzer not indexing "some"
Hi everybody, In the basic setup acts_as_ferret uses a StandardAnalyzer. How come that it won''t index the headline "some headline" with "some" and "headline". It only uses LetterTokenizer and LowerCaseFilter. Thanks for your help. Michael -- Posted via http://www.ruby-forum.com/.
2006 Jun 09
0
Controller Modules Messed Me Up
Modules are exactly what I needed to figure out, but once I started my app over again putting my controller under a module folder, I can''t get my basic app going. Basically I have a News app, where we will post PR and other articles of interest. It was working fine with a model/controller combo of news/index for the public and news/admin for the administrators. Keep in mind this
2000 May 28
1
SAMBA digest 2537
Hallo! I have a small question. I wanted to improve Samba-faxing. The system shown in the HOWTO does not include the nice features a faxing-program like Winfax offer. Chain-fax, adressbook and much more. So I began to write a series of scripts to manipulate the incoming fax to send. The text should have all the command on the 1st page. My scripts split the text in two parts: 1st page and pages
2005 Dec 13
1
Help with fonts
I recently changed to a new computer and reinstalled linux. I'm not happy with the current fonts and I see that the whole fonts area has been revamped, so any old notes I have are obsolete. Can anyone help me out? The first and major issue is that when an installation program I am running tries to display "C:\Program Files" it comes out looking like CWProgram Files. Having
2006 Jun 27
6
Custom action on Active Record Validation Failure?
Instead of having it highlight the bad fields when you enter in a record that fails validation, is there a way to make it do an action? I''m looking for something like this: validates_uniqueness_of :user_id,:url => {:controller => "headline", :action => "index"} so that on failing the uniqueness check, it would go to the headline controller. --
2006 Jun 26
0
DBI question. How do I load a database with data parsed from REXML?
I wrote a rexml script that parses rather big xml files (DOM parsing) and builds an object out of them. This is what it looks like after i parse the xml file and display the object: [#<Article:0xb79e7428 @brand="This is a story from ", @id=5337, @fblurb="burb", @ntype="news type here", @copy="Copyright \302\251 2006 ", @source="source",
2006 Jul 26
4
can you pass data when you render :action
how can i do: render :action => "headline", :id => @user.id Thanks, Ben Lisbakken -- Posted via http://www.ruby-forum.com/.
2004 Sep 18
0
RSS Feed Added to Asterisk News Site
I've put up an RSS feed on my site so that you can browse the headlines etc without actually visiting the site. If you use FireFox, Sage is a nice RSS reader. The URL is: http://www.sineapps.com/rssfeed.php _This is not a webpage._ It is a feed of the headlines and descriptions for Asterisk news for RSS compatible clients. Have a quick search on Google if you don't already have
2010 Jun 06
2
How to make an SQL querey Within a partial, is that possilbe??
Hello, I''m quite new to Rails and english is even not my first language, so please excused nescience and clerical mistake. I''ll try to explain my problem as good as possible. I try to implement a page where a profil is shown, this is searched by ID. within this profil page I want to include the comments that refer to this profil. In the back I have to database tabels, the one