similar to: TDD and migrations?

Displaying 20 results from an estimated 3000 matches similar to: "TDD and migrations?"

2006 Mar 31
1
rails + svn automation script
Anyone got a script to share that: 1. Creates a trunk directory 2. Creates a trunk/vendor directory 3. Adds the above to svn 4. Modifies trunk/vendor to use a certain rails revision (i.e. trunk or 1.1) 5. Runs trunk/vendor/rails/.../bin/rails to generate a rails directory skeleton 6. Modifies the svn:ignore for the logs and config/database.yml 7. Moves config/database.yml to
2007 Sep 16
10
I lost the RSpec fight
I''ve been working on a Rails project with one other developer; he was using Test::Unit, and I was using RSpec. That works OK for a while, but obviously it starts causing pain when you have to check in two places to see if a piece of code is properly tested/spec''d, you can''t use TextMate shortcuts to switch back and forth between code and test, you have to duplicate
2006 Feb 08
5
validates_acceptance_of + functional testing
I had to add a check box indicating that a user accepted certain terms to a page. So, I put in a ''validates_acceptance_of :terms'' line into the appropriate model and added a checkbox to my view. Everything works as expected in my web browser. However, my functional tests still pass and I didn''t add or change anything to them. I was expecting to have to add another
2006 Nov 07
7
should_redirect_to in advance - feels unnatural
I can understand that it''s easier for rspec to set up a mock in advance of the controller call. But it makes it difficult to do something like: context "The HarkController, given Louie the logged-in user" do setup do post :login, :username => ''louie'', :password => ''atest'' end specify "should redirect Louie to the home
2003 Dec 21
2
ToIP (TDD over IP)
I didn't know if it would work or not, but I figured I'd try slow-speed half-duplex TDD over GSM & Vonage. I called a AGI script I have that speaks to TTYs, by calling from Vonage to one of my Voicepulse lines. I don't control the Vonage codec, so I have no idea what it uses, but I am using GSM for the Voicepulse line. Everything worked fine - echo canceling didn't cause any
2010 Jun 16
2
TDD/TTY Support
On voip-info I found a few dated references to TDD support being in the alpha stage and buggy. Can anyone direct me to any newer information on this option? Thanks -- Karl Harris -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100616/d18f876f/attachment.htm
2006 Jan 12
1
[OT] TDD, Goats and Happiness (WAS: The Guilt List)
[snip good stuff] > After that you realize that TDD just makes you happy, so you start to apply it to other aspects of your life. Wait, I thought happiness had something to do with goats and feeling guilty about it. I''m confused. Again. But I would second Dylan''s suggestion of seeing a video of TDD in action w/ RoR. Having never tried this, it''s difficult to
2006 May 21
12
TDD for Rails book?
It seems like half the people on this list are writing a book on Ruby or Rails. For all the hints I''ve seen strewn across the list I have yet to see one that will focus on test-driven development for either Ruby or for Rails. If anyone is looking for a topic, please consider this. I''ve been trying to wrap my brain around the TDD process, but its way of thinking is
2007 Aug 24
26
testing behaviour or testing code?
hypothetical question for all you BDD experts: I want to make sure that a :list action always returns widgets in alphabetical order. There''s at least 2 ways of doing this: it "should fetch items in alphabetical order" do Widget.should_receive(:find).with(:order => "name ASC") get :list end it "should fetch items in alphabetical order" do [:red,
2008 Oct 11
1
Test Coverage Tool for TDD?
Hi, I''m learning TDD without using Shoulda or RSpec. When I played with RSpec, there was a tool to show test coverage visually. Is there any similar function built-in to Rails Test::Unit? Or do I need to add it on my own? What''s the recommended tool? I tried `rake -T test`, but didn''t find anything about coverage. -Jon
2006 Apr 03
2
problems testing on 1.1 and postgresql
Hi, I get errors doing this: 1) createdb myapp_test 2) rake db:test:clone_structure 3) rake test:units rake aborted! PGError: ERROR: relation "matches" already exists I''m using the :sql schema format because there are some problems with postgres and the :ruby schema format config.active_record.schema_format = :sql It seems rake test:units is trying to create the tables
2007 Jun 08
20
When to use BDD/TDD w/ external libraries
Test First Development is great...But should you use it when you are adding classes/methods on to external library that doesn''t have an extensive test suite? I noticed that the rspec plugin for autotest has no specs. David Chemlinsky said something to the list a while back that has been stewing in my subconscious - that you develop software differently using Test First
2008 Jan 11
2
Problems with rspec + remote db
hey guys, I''m having a problem here, I have a pc in my house that I use as a db server (postgresql). I have the pr-postgresql gem running and it works very well But when I try to "rake spec" I get these 2 errors C:/ruby/bin/rake: No such file or directory - dropdb -U "coleira" coleira_test C:/ruby/bin/rake: No such file or directory - createdb -E unicode -U
2007 Dec 16
1
Unit test preperation with migrations
I have spent sometime this afternoon learning how to unit test rails applications and integrate the Cerberus CI tool. One key area confuses me however, and I would appreciate other peoples views of how best to overcome the issue. My understanding is that the ''test'' and ''test:units'' have the db:test:prepare pre-requisite which copies the schema from dev to the
2006 Nov 30
41
TDD killing my joy of Rails
I''ve been working through the book ''Beginning Ruby on Rails E-Commerce'' which is very heavy on Test Driven Development. As in, you have to write tests for scaffolding methods and validations and crap like that. And then they fail. And you KNOW its the test not the method. So you spend 2x the time writing a test that has to be adapted when requirements change. You
2007 Aug 27
7
Foreign key constraints, fixtures, and rake task
I''ve got a spec that loads a fixture in the "before" block. This works fine running scripts/spec, but when I run rake spec instead, I get: ActiveRecord::StatementInvalid in ''User in fixture :quentin with an IM service but no IM name should be invalid'' Mysql::Error: Cannot delete or update a parent row: a foreign key constraint fails
2005 Mar 07
1
postgres unit testing in 0.10.1
http://dev.rubyonrails.com/changeset/856 looks to me like it''s not going to work, since there''s no way of specifying a password to pg_dump/dropdb/createdb. If you set PGPASSWORD in your environment it might work, but that''s not documented anywhere and isn''t done automatically in the Rakefile. See http://thread.gmane.org/gmane.comp.lang.ruby.rails/3693 for
2008 Aug 29
2
rake db:test:prepare
Hi I am using postgres And I have already development database..When I give rake db:test:prepare it gives sh: dropdb: command not found sh: createdb: command not found But how ever test db is created Same happens also when rake db:test:clone I would like to know why I am getting this message Thanks in advance Sijo -- Posted via http://www.ruby-forum.com/.
2005 Oct 28
3
PostgreSQL. Multiply schemas in one database. How to?
Hi all. I am using PostgreSQL in my current project and I have couple of questions on this topic. Previously I have used 3 databases for project. i.e. megaproject_development, megaproject_test and megaproject_development. But I don''t like this variant because of ''rake dump_db_structure'' writes a lot of PostgreSQL specific data for structure file (operators, functions,
2007 Jan 21
35
Collection proxies need to be stubbed ?
Hi all ! I just started writing specs on a new project. I would just like to validate that this is the way you would write it. I know about mocks, stubs and expectations. I don''t think this is a problem for me. My question really boils down to: def index @projects = current_user.projects.active end My spec needs to return the proxy, no ? Here''s my code: context "A