Re: [rspec-users] [RSpec] rcov and/or rexml bug?

2009-02-13 Thread Fernando Perez
> You shouldn't have to clone and install rcov manually. > > Just do this: > > gem install spicycode-rcov --source http://gems.github.com > > It will install just like any other gem. > Except it didn't work for me, the rcov binary doesn't get installed or is not defined properly. Is anyone el

[rspec-users] [cucumber][v0.2alpha]Where could I find API docs for custom formatters?

2009-02-13 Thread Yingnan Liu
Hi, I'm working on update my local Cucumber to the latest version. But it seems the old formatter APIs(step_failed, scenario_executed, etc.) don't work any more. Are there some documents or even Cucumber source code I can refer to? Thanks in advance, Liu __

[rspec-users] [Cucumber] running `cucumber` without a gem

2009-02-13 Thread Bart Zonneveld
Hey list, I have a test server, which doesn't have cucumber as gem, so I unpacked it into vendor/gems. After some fiddling with load paths, it works. However, the "binary" cucumber command won't run, since it needs the cucumber gem. I tried adjusting that file to actually use the unpacked

Re: [rspec-users] [cucumber][v0.2alpha]Where could I find API docs for custom formatters?

2009-02-13 Thread Aslak Hellesøy
API is Cucumber::Ast::Visitor. See cucumber/formatter/*.rb for examples Den 13. feb.. 2009 kl. 08.45 skrev Yingnan Liu : Hi, I'm working on update my local Cucumber to the latest version. But it seems the old formatter APIs(step_failed, scenario_executed, etc.) don't work any more. Are t

Re: [rspec-users] [cucumber][v0.2alpha]Where could I find API docs for custom formatters?

2009-02-13 Thread Joseph Wilk
Hello, Are you trying to update an old formatter to the newest release? The old formatter API has changed in the latest release. At the moment the best place to look is the current formatters source code: lib/cucumber/formatter/* pretty_formatter.rb is a good start. Another good place to lo

Re: [rspec-users] [Cucumber] running `cucumber` without a gem

2009-02-13 Thread David Chelimsky
On Fri, Feb 13, 2009 at 4:47 AM, Bart Zonneveld wrote: > Hey list, > > I have a test server, which doesn't have cucumber as gem, so I unpacked it > into vendor/gems. After some fiddling with load paths, it works. > However, the "binary" cucumber command won't run, since it needs the > cucumber gem

[rspec-users] [Cucumber] Http Post just returns status code and not Response-object

2009-02-13 Thread Felix Elliger
Hi, I'm really new to cucumber-testing. I want to use an HTTP Post in my step-definitions using the post-method. When I execute response = post '/controller/action' response is of type Fixnum and contains only the status code returned by the post. In rspec it returns an HTTPResponse-insta

Re: [rspec-users] [Cucumber] running `cucumber` without a gem

2009-02-13 Thread Bart Zonneveld
On 13 feb 2009, at 12:14, David Chelimsky wrote: On Fri, Feb 13, 2009 at 4:47 AM, Bart Zonneveld > wrote: Hey list, I have a test server, which doesn't have cucumber as gem, so I unpacked it into vendor/gems. After some fiddling with load paths, it works. However, the "binary" cucumber comm

[rspec-users] [Cucumber] ssl requirement

2009-02-13 Thread Wincent Colaiuta
I'm trying to write features for an SSL-only site, but I can't test anything because every request in my stories results in a redirect (the site is set up to redirect non-SSL requests to SSL). In my _specs_ I hack around this problem with this nasty kludge in my spec_helper: module Acti

Re: [rspec-users] [RSpec] rcov and/or rexml bug?

2009-02-13 Thread Chad Humphries
Githubs recent gem builder changes have caused some issues with this. We are looking into it today in more detail. Pulling it down and manually building should definitely work in the meantime. -- Chad Humphries spicycode On Feb 13, 2009, at 4:01 AM, Fernando Perez wrote: You shouldn't

Re: [rspec-users] [Cucumber] Http Post just returns status code and not Response-object

2009-02-13 Thread aslak hellesoy
On Fri, Feb 13, 2009 at 1:16 PM, Felix Elliger wrote: > Hi, > > I'm really new to cucumber-testing. I want to use an HTTP Post in my > step-definitions using the post-method. > When I execute > > response = post '/controller/action' > I'm guessing you're using Cucumber with Rails. Cucumber step

Re: [rspec-users] [Cucumber] Http Post just returns status code and not Response-object

2009-02-13 Thread Felix Elliger
aslak hellesoy schrieb: On Fri, Feb 13, 2009 at 1:16 PM, Felix Elliger wrote: Hi, I'm really new to cucumber-testing. I want to use an HTTP Post in my step-definitions using the post-method. When I execute response = post '/controller/action' I'm guessing you're using Cucumber wi

Re: [rspec-users] [Cucumber] running `cucumber` without a gem

2009-02-13 Thread David Chelimsky
On Fri, Feb 13, 2009 at 6:23 AM, Bart Zonneveld wrote: > > On 13 feb 2009, at 12:14, David Chelimsky wrote: > >> On Fri, Feb 13, 2009 at 4:47 AM, Bart Zonneveld >> wrote: >>> >>> Hey list, >>> >>> I have a test server, which doesn't have cucumber as gem, so I unpacked >>> it >>> into vendor/gems.

Re: [rspec-users] Cucumber - How to enable a disabled field

2009-02-13 Thread Tom Hoen
Joseph Wilk wrote: > I would highly recommend you take a look at Celerity > (http://celerity.rubyforge.org/) as well. Celerity (and Culerity) look great, but after trying for a half a day, I could not get jruby to build, so could not install Celerity, so I am back to Selenium. I followed the in

Re: [rspec-users] Is #valid? automatically called?

2009-02-13 Thread Nick Hoffman
On 12/02/2009, at 2:59 PM, David Chelimsky wrote: On Feb 12, 2009, at 1:03 PM, Nick Hoffman wrote: Does RSpec automatically call #valid? on ActiveRecord models? For instance, when this example is run: it 'should reject a nil value' do @form = TimeShiftForm.new :file => nil puts "@form.error

Re: [rspec-users] [Cucumber] ssl requirement

2009-02-13 Thread James Byrne
Wincent Colaiuta wrote: > I'm trying to write features for an SSL-only site, but I can't test > anything because every request in my stories results in a redirect > (the site is set up to redirect non-SSL requests to SSL). > You could consider moving your spec_helper method into a separate libra

Re: [rspec-users] Is #valid? automatically called?

2009-02-13 Thread Scott Taylor
On Feb 13, 2009, at 10:52 AM, Nick Hoffman wrote: On 12/02/2009, at 2:59 PM, David Chelimsky wrote: On Feb 12, 2009, at 1:03 PM, Nick Hoffman wrote: Does RSpec automatically call #valid? on ActiveRecord models? For instance, when this example is run: it 'should reject a nil value' do @f

Re: [rspec-users] [Cucumber] ssl requirement

2009-02-13 Thread Wincent Colaiuta
Thanks for the reply, James. El 13/2/2009, a las 16:28, James Byrne escribió: You could consider moving your spec_helper method into a separate library module, put that in /lib and load it in config/environments/test.rb. Moving the hack from the spec_helper.rb file into a different file un

Re: [rspec-users] [Cucumber, Merb, Webrat] undefined method 'response' for

2009-02-13 Thread deimos1986
Hi Jim, Just want to say thanks for fixing this. It blocked me for a day trying to figure out what broke. Any chance of trying to get this pulled into david's branch as most tutorials reference his branch. Cheers, Matt On Feb 1, 8:04 am, Jim Morris wrote: > Jim Morris wrote: > > Justin Smestad w

Re: [rspec-users] how to write complex matchers

2009-02-13 Thread Phlip
Yury Kotlyarov wrote: it "should have form with input fields" do render ... response.should have_form(users_path) do with_field_set 'Personal Information' do with_text_field 'First name', 'user[first_name]' ... end end end The minor problem with that system is it forces your

Re: [rspec-users] how to write complex matchers

2009-02-13 Thread David Chelimsky
On Fri, Feb 13, 2009 at 1:53 PM, Phlip wrote: > Yury Kotlyarov wrote: > >> it "should have form with input fields" do >> render ... >> response.should have_form(users_path) do >> with_field_set 'Personal Information' do >> with_text_field 'First name', 'user[first_name]' >> ... >> en

Re: [rspec-users] [Cucumber, Merb, Webrat] undefined method 'response' for

2009-02-13 Thread Jim Morris
deimos1986 wrote: > Hi Jim, > Just want to say thanks for fixing this. It blocked me for a day > trying to figure out what broke. Any chance of trying to get this > pulled into david's branch as most tutorials reference his branch. > > Cheers, > Matt It was Justin, I just benefited from his work.

[rspec-users] the latest rspec clone

2009-02-13 Thread David Chelimsky
Turns out I'm in the market for a new car ... http://jalopnik.com/5151658/hyundai-genesis-coupe-r+spec-live ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] the latest rspec clone

2009-02-13 Thread Ben Mabey
David Chelimsky wrote: Turns out I'm in the market for a new car ... http://jalopnik.com/5151658/hyundai-genesis-coupe-r+spec-live ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users LOL... I ex

[rspec-users] What rescue hooks

2009-02-13 Thread Nathan Wilmes
A few of our tests attempt to test controllers with production-style rescuing. Before the current rspec/Rails 2.2.2 combo, it was fairly easy to set up for these tests: it "should throw a 404 for strange actions" do controller.use_rails_error_handling! get :strange_action_name response.shou

Re: [rspec-users] how to write complex matchers

2009-02-13 Thread Phlip
David Chelimsky wrote: This looks pretty cool. I wonder if you'd have any interest in making this a bit more rspec-friendly? Something like an option to run it like this: expect_xpath do It's on my do-list, but... ...are pluggable matchers as hard to write as the OP implied? How would you fi

Re: [rspec-users] Testing misc methods in ApplicationController

2009-02-13 Thread Fernando Perez
How do you spec protected controller methods such as before_filters and helpers that with the params and session hashes? I cannot call controller.my_method if my_method is protected. > Try this: > > controller.andreplace("foo and bar").should eql("+foo +bar") -- Posted via http://www.ruby-foru

Re: [rspec-users] Testing misc methods in ApplicationController

2009-02-13 Thread Mark Wilden
On Fri, Feb 13, 2009 at 4:26 PM, Fernando Perez wrote: > How do you spec protected controller methods such as before_filters and > helpers that with the params and session hashes? You spec the public interface that calls (or causes to be called) the protected methods. ///ark

Re: [rspec-users] Testing misc methods in ApplicationController

2009-02-13 Thread Nick Hoffman
On 13/02/2009, at 7:26 PM, Fernando Perez wrote: How do you spec protected controller methods such as before_filters and helpers that with the params and session hashes? I cannot call controller.my_method if my_method is protected. Try this: controller.andreplace("foo and bar").should eql("

[rspec-users] Rspec Mentor or Paid Tutor Needed (near LA or remotely)

2009-02-13 Thread Blue Iguana
I need someone who can help me with Rspec. Ideally someone in the Los Angeles area or else remotely via ichat. I can afford to pay up to $50/hour for 16 hours of training. Hopefully someone who's truly enthusiastic about sharing their knowledge and not just for the money. I'm not new to Ruby but