Re: [rspec-users] [RSpec] Unexpected behavior using TextMate Bundle...

2007-10-12 Thread George Anderson
Can you give a bit more information? Versions of rspec, rspec_on_rails, tmbundle. How did you install? gem, .tgz, svn (trunk, CURRENT, or other) In both scenarios, when you "Open my spec," what does TextMate show for the selected "Language" of the file? RSpec, Ruby on Rails, other? Are they t

[rspec-users] Story Runner: Readability of output with multiple params

2007-10-12 Thread Tasty
Fistly, many, many thanks for RSpec and Story Runner. Minor request to improve readability of output Given a scenario item with multiple params.. Eg. And "the user belongs to", "Joe", "Acme" do |user_name, company_name| The readability of the following output is less than ideal.. "And the us

[rspec-users] [RSpec] Unexpected behavior using TextMate Bundle...

2007-10-12 Thread Mel Riffe
Howdy, Why does the bundle NOT work when I do the following: - Start TextMate - Open my project - Open my spec - Try to run spec and get an error While the following DOES work: - Open Terminal - Locate my project - Start TextMate via command line (mate .) - Open my spec - Try to

[rspec-users] Strange mock_model behaviour with ActiveResource model

2007-10-12 Thread James Hughes
Hi, I have two models in an app that inherit from ActiveResource::Base. The scaffold controller tests for one of the models works fine, but the other one dies when calling mock_model in the "handling GET /fa_codes" spec: Specifically, the call to mock model here: before do @fa_code = mock_m

Re: [rspec-users] locals in partials

2007-10-12 Thread Hans de Graaff
On Fri, 2007-10-12 at 12:47 -0400, Jonathan Linowes wrote: > that works for you? > I'm basically doing the same thing but the > >render "/pages/_page_menu.html.erb", :locals => { :pages => @foo } render :partial => 'pages/page_menu', :locals => {:pages => @foo} Note the :partial. Kind regar

[rspec-users] Speccing a rake task

2007-10-12 Thread dph
Greetings, I'm writing a custom rake task, and I'd like to write an assosciated spec for it. Does anyone have an example spec for a rake task? I've seen some examples on the web that use these before blocks: before(:each) do @rake = Rake::Application.new Rake.application = @rake end

Re: [rspec-users] locals in partials

2007-10-12 Thread Jonathan Linowes
oops, of course that last line wouldnt be commented out On Oct 12, 2007, at 12:47 PM, Jonathan Linowes wrote: > > that works for you? > I'm basically doing the same thing but the > > render "/pages/_page_menu.html.erb", :locals => { :pages => @foo } > > produces error > > undefined local

[rspec-users] Edge rspec - running Test::Unit tests

2007-10-12 Thread Alvin Schur
With rspec 1.0.8 I can run Test::Unit tests and rspec tests using: rake default and all tests and specs run. With edge rspec the Test::Unit tests return with the message: [list of tests] Finished in 4.5e-05 seconds 0 examples, 0 failures How can I get Test::Unit and rspec t

Re: [rspec-users] locals in partials

2007-10-12 Thread Jonathan Linowes
that works for you? I'm basically doing the same thing but the render "/pages/_page_menu.html.erb", :locals => { :pages => @foo } produces error undefined local variable or method `pages' for # but it works when i add to the top of the partial: <%# pages ||= @foo #kludge fo

Re: [rspec-users] locals in partials

2007-10-12 Thread Hans de Graaff
On Fri, 2007-10-12 at 10:33 -0400, Jonathan Linowes wrote: > hiya, in specing a partial, how can i assign a local var that is > normally passed via :locals ? i tried adding :locals => to the render > call but that doesnt seem to take it 'should include :var' render :partial => 'your/partial', :

Re: [rspec-users] locals in partials

2007-10-12 Thread Andrew WC Brown
Hi Jon, I was having trouble with partials a while ago and I think it might have info on solving your problem http://www.nabble.com/spec%27ing-view-render-partial-collection%2C-local-variable-not-found-tf4577761.html I'm guessing your referring to when you called your parital in a spec: it "s

Re: [rspec-users] Rspec Textmate bundle errors

2007-10-12 Thread Mel Riffe
Hey David, This is what worked for me (just did this last night): 1. I removed everything rspec to have a clean slate: - gem uninstall rspec - rm -fr vendor/plugins/rpec - rm -fr vendor/plugins/rpec_on_rails - using BundleEditor, removed RSpec Bundle 2. I then installed the rspec plugins

Re: [rspec-users] Rspec Textmate bundle errors

2007-10-12 Thread David Currin
David Chelimsky wrote: > On 10/11/07, Brandon Keepers <[EMAIL PROTECTED]> wrote: >> >>> bundle. >> >> Opening a simple spec file and running the run behaviour description, >> > >> I can also confirm issues with the RSpec TextMate bundle as of this >> from /opt/local/lib/ruby/gems/1.8/gems/b

[rspec-users] locals in partials

2007-10-12 Thread Jonathan Linowes
hiya, in specing a partial, how can i assign a local var that is normally passed via :locals ? i tried adding :locals => to the render call but that doesnt seem to take linoj ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.o

Re: [rspec-users] [RSpec] Question about using TextMate Bundle...

2007-10-12 Thread Mel Riffe
Hey David, I'm Golden now. - Uninstalled the gem - svn co .../tags/CURRENT/rspec && rspec_on_rails - svn co .../tags/CURRENT/RSpec.tmbundle Thanks! On 10/11/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > > On 10/11/07, Mel Riffe <[EMAIL PROTECTED]> wrote: > > Thanks for the quick response. >