similar to: Rails new without test unit

Displaying 20 results from an estimated 1000 matches similar to: "Rails new without test unit"

2011 Apr 02
7
rails_upgrade maintenance
There was a thread a little earlier in the year about maintaining the official Rails plugins. It would seem that rails_upgrade has been left by the wayside, with pull requests dating back as early as September last year. It''s mentioned in the 3.0 release notes as a way of checking your application for changes between 2.3 and 3.0, but what''s the point if the official version of it
2004 Feb 01
2
test_services test case
While working on win32-service-0.3.0 I got hung up trying to resolve that "RPC server is unavailable" error message that was popping up on some systems. I couldn''t duplicate this on my XP Pro box, but it does show up on my Win2k box. Quick review - this is the test case from tc_service.rb def test_services assert_nothing_raised{ Service.services{ } }
2007 Mar 08
1
cant fully capture child output
I cant seem to get the io from a child process of a worker back to my client. There most be something academic I''m missing :/. I looked at examples in Pickaxe and Ruby PLEAC library ... and I believe the following should work: # called from within do_work... def backup(repo) logger.info(''SvnWorker backup repo ''+repo) tmp = [] my_project =
2009 Feb 03
3
Rcov - Specifying rake tasks
I am trying to get a customized rcov rake task working. What I have so far looks like this: desc "Rcov code coverage reports" require ''rcov/rcovtask'' require ''spec/rake/spectask'' require ''cucumber/rake/task'' task :rcov => "rcov:all" namespace :rcov do Rcov::RcovTask.new(:all) do task :rcov =>
2011 May 29
4
Model load time
Hi, I''m getting a little confused how Rails handles loading models. I''m on development mode, using Rails 3.1.0.rc1 on ruby 1.8.7 My application models are: Curso Legislacao Usuario And I have another model that is loaded from a gem Im trying to build: Cidade My gem is actually a simple engine: require ''active_record'' require
2005 Nov 16
19
Concerns over Rails' handling of tests
Sorry if this comes across as a bunch of disjointed thoughts...I''m just trying to put my thoughts down and I''d like to know what other people''s opinions on the subject are. I''ve been working with Rails for 3 or 4 months now and I''m constantly trying to look at ways of improving my testing techniques, especially when it comes to TDD. I have a few
2011 May 01
2
More detailed Test::Unit error report
Hi, I''m starting to use Test::Unit to create unit tests for my Rails Applications/Plugins. I don''t have much experience in Ruby Unit Testing. The problem is that the output report is very simple and it is very difficult to discover where is the error. Test::Unit does not show the line number of the error and the Stack Trace printed using the --trace option does not help either.
2012 Oct 01
1
active_model_serializers, more than one level deep of associations, specifying serializers per association
I am assuming this an appropriate place to discuss this, but if it isn''t my apologies- just let me know. Just a Rails 4-ish thing. Am attempting to pull AMS (active_model_serializers), strong_parameters, and the "permitter" strategy that Adam Hawkins is using: http://broadcastingadam.com/2012/07/parameter_authorization_in_rails_apis/ Code so far is here (in the
2005 Feb 27
0
Re: test/unit report attached
Hi Shanko, I''ve read over the testunit results that you posted. First, please do not include win32-thread or win32-driveinfo. The former is extremely beta. The latter I want to reshape a bit before we release it. Other tests: You can ignore the LINK warnings. win32-dir - These failures are expected. Ignore. win32-file - You can ignore the warnings regarding File.encrypt and
2010 Jan 19
15
git clone locally
Hi, I follow the instructions below to set up a git repository with gitosis on my home ubuntu server. I can connect to the repository remotely perfectly and set up a new repository named My_Project. I successfully push the content of My_Project to this repository using the remote computer with an SSH key. Now I want to clone My_Project locally onto another directory within the unbuntu server.
2012 Nov 19
0
has_one :through NoMethodError: undefined method `klass' for nil:NilClass when doing class_name on reflection
Not sure if this is expected or not. Only happened with a has_one :through I had setup. (Workaround is just to remove it and go through the association manually vs has_one ..., through: .) Not a big deal if no one has time to look at it, as it''s not a big enough deal to look into a fix on our side. In Rails (3.2.9) console if I do: MyModel.reflections.each {|name,reflection|
2006 Mar 13
2
Engines with InstantRails
I''ve recently started playing with InstantRails 1.0 and am now wanting to experiment with the Login and active RBAC engines but having trouble getting them to install. I''ve checked the following but can''t find any info on how to get it to work. http://rails-engines.org/wiki/pages/Engines+plugin I''ve also tried the following:
2007 Mar 05
0
dynamic status back to client...
Hi, I have a long worker process I want to capture the output as dynamically as possible and send it to the client. I do the following currently: class SvnWorker < Worker::Base def do_stuff(args) tmp = [] my_project = args[:repo] # Import the contents of a 20 Meg project into a bare bones svn repo. import_status = `svn import #{path_to_extracted_zipdir} file://#{my_project}` tmp =
2011 Jun 22
0
Spork, Rails and testunit
Hi. I''m trying to use Spork (actually spork-testunit, last git version) with Rails 3. My setup is correct, I manage to launch Spork (through bundle exec) and testdrb. But I cannot succeed to have my models reloaded. Spork-testunit''s doc says to put the loading commands in the prefork block, which I did. Nobody seems to require the use of Spork#trap_method. What is the good
2004 Sep 10
0
1.0 source candidate
On Fri, Jul 20, 2001 at 05:15:21PM -0700, Josh Coalson wrote: > I rethought it and it seemed like a bad idea to post > a big file, so you can get it here: > > http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/flac/junk/flac-1.0-src-candidate.tar.bz2 With the attached patch, a complete "make distcheck" should work, including the self-tests. It adds missing directories to some
2010 Jul 25
0
Testing problems: ActiveSupport
Hey everybody, I am trying to test a small application with a simple testing, but I get the following errors while using Aptana 2.0.5 with Ruby 1.9.1 and Rails 2.3.8(I know why I get the first one, but I''m not sure about the ActiveSupport errors): Exception: undefined method `screen_name'' for nil:NilClass
2005 Dec 27
4
Migrations & Unit Testing: Possible Bug in Rails?
I recently started using migrations to create the schema of a Rails project I am working on. The database I am using for this project is MySQL. The initial migration creates the table and also includes a number of execute statements (to do some things like setting primary keys, autoincrement on some columns and other messy voodoo). Running "rake migrate" creates the database with no
2008 Nov 21
57
Spec''ing via features
As I work with Rails TestUnit tests I am reconsidering how to use cucumber features. It seems to me that it might be best to have a coherent view of how to arrange my test suites before I get much further into this. Now, so far I have considered three possibilities: 1. Use features exclusively. Create a feature file for each model, one for each controller and possibly an additional one for
2010 Jul 24
23
How to disable ORM in Rails 3
Is there any way to prevent Rails 3 from using an ORM? In Rails 2, it used to have a description in environments.rb explaining how to do that. In Rails 3, is there any way to tell it to not use any database? I was trying to make some benchmarks from situations that don''t require a database... Thanks in advance, Rodrigo. -- You received this message because you are subscribed to
2008 Nov 19
6
RSpec, TestUnit, Cucumber and Autotest
OS=CentOS-5.2 Ruby=1.8.6 Rails=2.2.1_RC Gems all up to date I have been experimenting with autotest and I have a few questions. 1. given export AUTOFEATURES=TRUE if ./test exists (with tests) then these tests are run and the features are not. Is this intended behaviour? 2. given require ''autotest/redgreen'' in .autotest if /test tests are run then all I get colourized is a