Re: [rspec-users] Running spec_server

2008-04-25 Thread Scott Taylor
On Apr 25, 2008, at 3:16 PM, Olivier Dupuis wrote: Hello, I've been using rspec for a while now and just noticed spec_server. I would like to use it, but for some reason, it's not able to start. I have the latest versions of rspec and rspec_on_rails. I'm using WinXp. The specific err

[rspec-users] restful controllers with different content types

2008-04-25 Thread Adam Wiggins
Simplified example of a controller which takes a POST with a non-xml and non-form-urlencoded content type: class PhotosController < ApplicationController def create Photo.create :binary_data => request.body.read, :content_type => 'image/jpg' head :ok end end How can I spec this? The

Re: [rspec-users] BDD/Rails/Shoulda

2008-04-25 Thread Ashley Moran
On 25 Apr 2008, at 00:59, Brian Takita wrote: This reminds me of Allister Cockburn's application of Shu Ha Ri in software development. http://alistair.cockburn.us/index.php/ASD_book_extract:_%22Unknowable_and_incommunicable%22 http://www.martinfowler.com/bliki/ShuHaRi.html http://c2.com/cgi/wik

Re: [rspec-users] Spec the Application Controller application.rb

2008-04-25 Thread Zach Dennis
Do this... after do eval IO.read(RAILS_ROOT + "/config/routes.rb") end Zach On Thu, Apr 24, 2008 at 2:20 AM, Andy Croll <[EMAIL PROTECTED]> wrote: > This bit however, replaces your other routes, so you cannot use them in > your tests > > > before(:each) do > > ActionController::Ro

[rspec-users] Running spec_server

2008-04-25 Thread Olivier Dupuis
Hello, I've been using rspec for a while now and just noticed spec_server. I would like to use it, but for some reason, it's not able to start. I have the latest versions of rspec and rspec_on_rails. I'm using WinXp. The specific error I get is the following: script/spec_server:9: undefined m

[rspec-users] Rspec output and unicode

2008-04-25 Thread Tim Haines
Hey there, Rspec output (1.1.3) doesn't seem to be handling unicode characters correctly. I'm expecting to see Japanese katakana (on winXP) and I'm getting numbers instead - the byte representation of the katakana or something.. Should it be producing unicode if I have my environment set right?

[rspec-users] Spec migrations?

2008-04-25 Thread Harm Aarts
Dear list, I am in the process of writing on an app with is already running. I need to create a couple of structural database changes for which I use migrations. However I want to be absolutely sure I do not destroy any existing data. So RSpec is the way to go! Or so I thought. 1. dropped

Re: [rspec-users] Net:SSH

2008-04-25 Thread Matthias Hennemeyer
Hi James, i'm afraid this rspec user list is not the right list for your question. Matthias Am 25.04.2008 um 10:59 schrieb James George: Guys I'm having a problem with net-ssh, its kinda taking too long to execute a command and give me the results. It takes around 40 seonds to do it. And I

[rspec-users] Net:SSH

2008-04-25 Thread James George
Guys I'm having a problem with net-ssh, its kinda taking too long to execute a command and give me the results. It takes around 40 seonds to do it. And I have 3-4 commands to run on the remote box. Is there any possibility to speed up the process. Im using the commands to run on a CISCO BTS server