Re: [rspec-users] Rspec 1.1.3 +ZenTest 3.9.1= rspec tests not found

2008-05-13 Thread sinclair bain
Hi, I have just been having the same problem on windows using autotest and/or rspec_autotest I have successfully moved to rspec and rspec on rails 1.1.3 ZenTest 3.9.2 So if you were on windows the fix in case you still may need it is here http://rspec.lighthouseapp.com/projects/5645/tickets/80-15

Re: [rspec-users] TextMate Sidebar

2007-12-10 Thread sinclair bain
Great ! Thanks Scott! On Dec 7, 2007 4:19 PM, Scott Taylor <[EMAIL PROTECTED]> wrote: > > On Dec 7, 2007, at 3:57 PM, sinclair bain wrote: > > Hey Jed, > Can you please provide a link to the recording you mentioned ? > > That would be great! > > > >

Re: [rspec-users] TextMate Sidebar

2007-12-07 Thread sinclair bain
Hey Jed, Can you please provide a link to the recording you mentioned ? That would be great! Cheers! sinclair On Dec 7, 2007 2:25 AM, Jed Hurt <[EMAIL PROTECTED]> wrote: > Hey David, > I just watched the RubyConf recording of your RSpec session and noticed > that you're using a modified versi

Re: [rspec-users] Rollbacks, Sqlite3 bug. Has this been reintroduced ?

2007-11-29 Thread sinclair bain
Great ! As always thanks! Cheers! sinclair On Nov 29, 2007 12:12 PM, David Chelimsky <[EMAIL PROTECTED]> wrote: > On Nov 29, 2007 11:06 AM, David Chelimsky <[EMAIL PROTECTED]> wrote: > > On Nov 29, 2007 10:55 AM, sinclair bain <[EMAIL PROTECTED]> wrote: > > &

[rspec-users] Rollbacks, Sqlite3 bug. Has this been reintroduced ?

2007-11-29 Thread sinclair bain
Hey, I just updated from the edge and it looks like this _issue_ has resurfaced. Yesterday things were working (stories and specs). No code base changes, only rspec and rspec_on_rails After updating today I now need to set to false in the spec_helper.rb to get the specs running, the stories ar

Re: [rspec-users] Stubbing out required associated models

2007-11-14 Thread sinclair bain
Matthew, If your intent is to test the behaviour of your model(s), then yes mocking and stubbing are a good [_the_] way to go. > > Cheers! sinclair ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Story problem if parenthesis used in Given, When, Then or And

2007-11-13 Thread sinclair bain
Submitted error #15608. On Nov 13, 2007 12:16 PM, David Chelimsky <[EMAIL PROTECTED]> wrote: > On Nov 13, 2007 11:05 AM, sinclair bain <[EMAIL PROTECTED]> wrote: > > VERSION: rspec rails plugin current edge version > > XP/Cygwin on XP > > > > Hi, > &

[rspec-users] Story problem if parenthesis used in Given, When, Then or And

2007-11-13 Thread sinclair bain
VERSION: rspec rails plugin current edge version XP/Cygwin on XP Hi, I hit this when trying to use parenthesis in my stories ... (that'll teach me!). If a scenario looks like the following: Story "User has story with parentheses", %{ As a user I want parenthesis So that ... well I just do

Re: [rspec-users] autotest displays no output

2007-10-31 Thread sinclair bain
Great! /spec /controllers /models /helpers /views is a common way to organize the specs -- Cheers! sinclair ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyfo

Re: [rspec-users] autotest displays no output

2007-10-31 Thread sinclair bain
Pangel, I run autotest on cygwin so it can work ... :) Does rake spec work ? Have you installed all gems in cygwin ? How are you starting autotest ? On 10/31/07, pangel <[EMAIL PROTECTED]> wrote: > > > I am quite a beginner so maybe I'm not looking into the right place, but I > don'

Re: [rspec-users] Specing with Subdomains as Account Keys

2007-10-26 Thread sinclair bain
That's great! Cheers! sinclair On 10/26/07, Ryan Heneise <[EMAIL PROTECTED]> wrote: > > On Oct 26, 2007, at 12:11 PM, sinclair bain wrote: > > > Ryan, > > > > Are you stubbing > > > > @current_company = Company.find_by_subdomain(account_subdomain

Re: [rspec-users] Specing with Subdomains as Account Keys

2007-10-26 Thread sinclair bain
Ryan, Are you stubbing @current_company = *Company.find_by_subdomain(account_subdomain)* in the inherited #find_current_company method ? Make sure the @current_company is the same one upon which you have your expectations ? ie before do ... Company.stub!(:find_by_subdomain).and_return(@curr

Re: [rspec-users] Mocking/Stubbing help with subdomain as account key

2007-10-25 Thread sinclair bain
Ryan,Not exactly sure what is the problem your are having ... however Is the @current_person being assigned (set up) correctly in the things_controller ? Also may be refactor a #find_thing(...) instance method into the @current_person class to help with the encapsulation of things - literally. T

Re: [rspec-users] Rollbacks, Sqlite3 bug

2007-10-25 Thread sinclair bain
Cheers Brian! On 10/25/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > > On 10/25/07, sinclair bain <[EMAIL PROTECTED]> wrote: > > Guys, > > This fix also removes the need to manually set the > > > > config.use_transact

Re: [rspec-users] Rollbacks, Sqlite3 bug

2007-10-25 Thread sinclair bain
Guys,This fix also removes the need to manually set the config.use_transactional_fixtures = false so this config.use_transactional_fixtures = true (the default) in spec/spec_helper.rb now works as before. Good work Scott! Great persistence. Thanks again David for putting the fix in ! Che

Re: [rspec-users] An error on edge at -r 2767

2007-10-23 Thread sinclair bain
Ignorance *was* bliss. Cheers! sinclair On 10/23/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > > On 10/23/07, sinclair bain <[EMAIL PROTECTED]> wrote: > > So ... somewhere in there lies the cause.; ) > > > > Anyway I get the Story Runner back with

Re: [rspec-users] An error on edge at -r 2767

2007-10-23 Thread sinclair bain
David Chelimsky <[EMAIL PROTECTED]> wrote: > > On 10/23/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > > On 10/23/07, sinclair bain <[EMAIL PROTECTED]> wrote: > > > This all occurs on WindowsXP > > > > Ah - I am therefore not able to help debug this p

Re: [rspec-users] An error on edge at -r 2767

2007-10-23 Thread sinclair bain
. Anyway I am where I was (?) . I will poke around a little more ... Thanks ! Cheers! sinclair On 10/23/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > > On 10/23/07, sinclair bain <[EMAIL PROTECTED]> wrote: > > Oops, > > > > A bit over-zealous on the send. > &

Re: [rspec-users] An error on edge at -r 2767

2007-10-23 Thread sinclair bain
Oops, A bit over-zealous on the send. As I meant to add This was not the case last week. This did not occur until yesterday when I svn upped the project (I had installed the rspec trunk as an svn:external). This all occurs on WindowsXP ___ rspec-users ma

Re: [rspec-users] An error on edge at -r 2767

2007-10-23 Thread sinclair bain
n the specs behave as coded i.e. 1 success and 1 fail. This was not the case last week. This did not occur until On 10/23/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > > On 10/23/07, sinclair bain <[EMAIL PROTECTED]> wrote: > > Hi,Updated from the trunk/edge again tod

Re: [rspec-users] An error on edge at -r 2767

2007-10-23 Thread sinclair bain
Hi, Updated from the trunk/edge again today however all the specs still fail as before. I uninstalled and moved back to the 1.0.8 release and all specs are successful again. Unfortunately, no Story Runner. Cheers! sinclair On 10/22/07, sinclair bain <[EMAIL PROTECTED]> wrote: >

[rspec-users] An error on edge at -r 2767

2007-10-22 Thread sinclair bain
Morning, Having done an svn up this morning all my specs are broken with the following: SQLite3::SQLException in ServiceConfig with minimum set of valid parameters should return nil for the service path' SQL logic error or missing database C:/development/sandbox/prototypes/user_admin_client/config

Re: [rspec-users] controller.expect_render has me beat!

2007-10-01 Thread sinclair bain
Hans that did it! Thanks for that one! Cheers! sinclair On 9/25/07, Hans de Graaff <[EMAIL PROTECTED]> wrote: > > On Fri, 2007-09-14 at 17:51 -0400, sinclair bain wrote: > > > > def update > > ... > > if @config.update_attributes ( params[:new_con

Re: [rspec-users] form action url example

2007-10-01 Thread sinclair bain
Living and learning ! Cheers for that David! Cheers! sinclair On 9/28/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > > On 9/28/07, sinclair bain <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I have the following example: > > > > > >

[rspec-users] form action url example

2007-09-28 Thread sinclair bain
Hi, I have the following example: it 'should have a form with an action attribute' do response.should have_tag( "form[action=?]", '/users/1/machines/1/trouble_tickets') end for a form like so: <% form_for( :trouble_ticket, :url => { :action => 'create', :user_id => @

Re: [rspec-users] Testing nested controller

2007-09-26 Thread sinclair bain
get :show, :writer_id => "1", :note_id => "1" This may also get :show, :writer_id => "1", :id => "1" On 9/22/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > > Controller specs are similar to Rails functional tests, except that > they don't render views (unless you tell them to). So rath

[rspec-users] controller.expect_render has me beat!

2007-09-14 Thread sinclair bain
Hi, A controller has a method with the following def update ... if @config.update_attributes ( params[:new_config] ) redirect_to :action => :index else * render :action => :edit, :id => params[:id] # this line here* end ... end The example has the following

[rspec-users] controller.expect_render has me beat!

2007-09-14 Thread sinclair bain
Hi, A controller has a method with the following def update ... if @config.update_attributes( params[:new_config] ) redirect_to :action => :index else * render :action => :edit, :id => params[:id] # this line here* end ... end The example has the following it

Re: [rspec-users] Authenticating before tests

2007-09-13 Thread sinclair bain
Hi! Have you considered mocking / stubbing to test in isolation if that is appropriate ? sinclair On 9/13/07, Luke Galea <[EMAIL PROTECTED]> wrote: > > Hi all, > > I'm using Goldberg, an engine that provides roles based access > control for my app. I need to login before I can do controller tests

Re: [rspec-users] AutoTest plugin and rspec for rails

2007-08-09 Thread sinclair bain
Dave, Got that ... --colour --format progress ... The latest ... all installed today ... except rspec 4 rails it is 1.0. This was all going ok before I installed autotest (red, green and yellow). On 8/9/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > > On 8/9/07, sinclair

[rspec-users] AutoTest plugin and rspec for rails

2007-08-09 Thread sinclair bain
(WinXP) Hi, I have the autotest rails plugin running - detecting changes and running the examples. However the rspec color output (of which I am a fan) ... has stopped happening Anybody got a spare moment to point me in the right direction, please ? Cheers! sinclair

[rspec-users] Do the :attributes and :content matchers work

2007-08-02 Thread sinclair bain
[Rails plugin 1.0.5] Hi, I am looking for some guidance. When working on a partial which looks like this I have some examples which should fail - I think - but do not: it ' should fail' do response.should have_tag( 'div.bug', :content => 'There is no content!' ) end