Re: [rspec-users] Cucumber and IP PBX testing

2009-11-18 Thread Lee Hambley
Robertico, Provided you can match the items you need to click, select, fill in and alter with CSS (see assert_select: http://blog.labnotes.org/2006/09/04/assert_select-cheat-sheet/) selectors, you can do all of these things -- Lee Hambley Twitter: @leehambley | @capistranorb

[rspec-users] Cucumber and IP PBX testing

2009-11-18 Thread Robertico Gonzalez
Hi, I am new to Cucumber. I am a test engineer for an IP PBX. Has anyone tried to use Cucumber to test such application? Some of the actions that I need to perform are: Given: a) Configure parameters on a web site to change phone behavior b) Configure parameters on a web site to change trunk b

Re: [rspec-users] rspec-rails gem double quoting (My)SQL?

2009-11-18 Thread David Nawara
In case anyone feels like messing with this, I've replicated the problem in a minimal test application... The problem seems to be some sort of load issue. From what I can tell, it is due to three related items: 1) a user model with authlogic, 2) rspec-rails, and 3) a users observer. Removing

Re: [rspec-users] rspec-rails gem double quoting (My)SQL?

2009-11-18 Thread David Chelimsky
On Tue, Nov 17, 2009 at 3:04 PM, David Nawara wrote: > Hi all, > > This seems like a plugin conflict (I haven't yet had success replicating > this in a new project), but short version is: when I have "rspec-rails" > in my environment.rb plugin config, table names are double quoted in > mysql quer

Re: [rspec-users] rspec-rails gem changing connection adapter

2009-11-18 Thread David Nawara
I'm not totally there, but I'm pretty sure it's down to the authlogic plugin. Thanks for your help, and sorry about the misfire on rspec. (I didn't think that one made sense, but it's all I had at the time.) I've actually found I can comment out loading observers in my environment.rb and thin

Re: [rspec-users] MockExpectationError actual args format for stubbed messages

2009-11-18 Thread David Chelimsky
On Wed, Nov 18, 2009 at 2:53 AM, Tom Stuart wrote: > Hi, > > Is it realistic and desirable to tweak RSpec so that the > MockExpectationError for a stubbed message works as specified in the > attached spec patch? > > In short, we wasted some time today on a wild goose chase because a failing > exp

Re: [rspec-users] rspec-rails gem changing connection adapter

2009-11-18 Thread David Nawara
Yeah I think you're right. I'm working on this now... I noticed the only RAILS_ENV I have set on sqlite is the test environment (in database.yml), and cucumber is now doing some ||= fun on the RAILS_ENV, so I'm following that trail. I suspect something (cucumber?) is setting me to the test or

Re: [rspec-users] rspec-rails gem changing connection adapter

2009-11-18 Thread Matt Wynne
On 18 Nov 2009, at 18:39, David Nawara wrote: This thread should be titled: "rspec-rails gem changing connection adapter?" I did some puts's and found that something is changing the connection adapter to ActiveRecord::ConnectionAdapters::SQLite3Adapter, from my specified ActiveRecord::Connecti

Re: [rspec-users] undefined method `register' for Polyglot:Module

2009-11-18 Thread Joe Van Dyk
Oh, hm. Looks like there's a lot of projects with the name 'polyglot'. Hm. On Wed, Nov 18, 2009 at 11:12 AM, Joe Van Dyk wrote: > Getting this error.  I have the treetop, polyglot, and rspec libraries > in the load_path (not installed as a gem).  Any ideas?  What defines > the register method?

[rspec-users] undefined method `register' for Polyglot:Module

2009-11-18 Thread Joe Van Dyk
Getting this error. I have the treetop, polyglot, and rspec libraries in the load_path (not installed as a gem). Any ideas? What defines the register method? /home/jvandyk/dev/web/wpn_rails/../../rcommon/lib/test/treetop/lib/treetop.rb:16: undefined method `register' for Polyglot:Module (NoMeth

[rspec-users] rspec-rails gem changing connection adapter

2009-11-18 Thread David Nawara
This thread should be titled: "rspec-rails gem changing connection adapter?" I did some puts's and found that something is changing the connection adapter to ActiveRecord::ConnectionAdapters::SQLite3Adapter, from my specified ActiveRecord::ConnectionAdapters::MysqlAdapter. Or maybe it's causi

[rspec-users] MockExpectationError actual args format for stubbed messages

2009-11-18 Thread Tom Stuart
Hi, Is it realistic and desirable to tweak RSpec so that the MockExpectationError for a stubbed message works as specified in the attached spec patch? In short, we wasted some time today on a wild goose chase because a failing expectation error was saying "unexpected arguments, expected: (#, #