Re: [rspec-users] cucumber hooks BeforeAll and AfterAll

2009-02-17 Thread aslak hellesoy
On Tue, Feb 17, 2009 at 10:32 PM, Ashley Moran wrote: > > On 15 Feb 2009, at 19:47, Ben Mabey wrote: > >> To illustrate what Zach is saying here is an example I used on the wiki[1] >> before: >> >> # Global setup >> ActionMailer::Base.delivery_method = :test >> ActionMailer::Base.perform_deliverie

Re: [rspec-users] validate_presence_of

2009-02-17 Thread David Chelimsky
On Tue, Feb 17, 2009 at 8:42 PM, Yi Wen wrote: > ah! sorry, my bad. Thanks! No worries - I always just read the code first too :) > > On Tue, Feb 17, 2009 at 6:56 PM, David Chelimsky > wrote: >> >> On Tue, Feb 17, 2009 at 6:25 PM, Yi Wen wrote: >> > Sorry for the spam, I relized there was a ty

Re: [rspec-users] validate_presence_of

2009-02-17 Thread Yi Wen
ah! sorry, my bad. Thanks! On Tue, Feb 17, 2009 at 6:56 PM, David Chelimsky wrote: > On Tue, Feb 17, 2009 at 6:25 PM, Yi Wen wrote: > > Sorry for the spam, I relized there was a typo. It should be > >it {should validate_presence_of(:login)} > > It still didn't work > > Scrolling up a bit

Re: [rspec-users] validate_presence_of

2009-02-17 Thread Tim Glen
according to this post: http://blog.davidchelimsky.net/2009/1/13/rspec-1-1-12-is-released I should be able to write: describe User do it {should valdate_presence_of(:login)} end with rspec 1.1.12 But I got: NO NAME undefined method `valdate_presence_of' for # Hi Yi, I believe you're

Re: [rspec-users] validate_presence_of

2009-02-17 Thread David Chelimsky
On Tue, Feb 17, 2009 at 6:25 PM, Yi Wen wrote: > Sorry for the spam, I relized there was a typo. It should be >it {should validate_presence_of(:login)} > It still didn't work Scrolling up a bit ... "There are a few matcher libraries out there like rspec-on-rails-matchers that provide m

Re: [rspec-users] validate_presence_of

2009-02-17 Thread Yi Wen
Sorry for the spam, I relized there was a typo. It should be it {should validate_presence_of(:login)} It still didn't work On Tue, Feb 17, 2009 at 6:04 PM, Yi Wen wrote: > Hello, > > according to this post: > http://blog.davidchelimsky.net/2009/1/13/rspec-1-1-12-is-released > > I should b

[rspec-users] validate_presence_of

2009-02-17 Thread Yi Wen
Hello, according to this post: http://blog.davidchelimsky.net/2009/1/13/rspec-1-1-12-is-released I should be able to write: describe User do it {should valdate_presence_of(:login)} end with rspec 1.1.12 But I got: NO NAME undefined method `valdate_presence_of' for # What did I do it wrong?

Re: [rspec-users] [Cucumber] Portuguese keywords not recognized

2009-02-17 Thread David Chelimsky
On Tue, Feb 17, 2009 at 5:14 PM, Oliver Barnes wrote: > sorry to bump this up, I am the only one experiencing this problem? > anybody else running cucumber in other languages? Oi Oliver, Poderia ver o codigo aqui: http://github.com/aslakhellesoy/cucumber/blob/e1afbf1908fdb3867d857478847403abeedd

Re: [rspec-users] cucumber hooks BeforeAll and AfterAll

2009-02-17 Thread David Chelimsky
On Tue, Feb 17, 2009 at 3:32 PM, Ashley Moran wrote: > > On 15 Feb 2009, at 19:47, Ben Mabey wrote: > >> To illustrate what Zach is saying here is an example I used on the wiki[1] >> before: >> >> # Global setup >> ActionMailer::Base.delivery_method = :test >> ActionMailer::Base.perform_deliveries

Re: [rspec-users] cucumber hooks BeforeAll and AfterAll

2009-02-17 Thread Ashley Moran
On 15 Feb 2009, at 19:47, Ben Mabey wrote: To illustrate what Zach is saying here is an example I used on the wiki[1] before: # Global setup ActionMailer::Base.delivery_method = :test ActionMailer::Base.perform_deliveries = true Before do # Scenario setup ActionMailer::Base.deliveries.c

Re: [rspec-users] [Cucumber] Portuguese keywords not recognized

2009-02-17 Thread Oliver Barnes
sorry to bump this up, I am the only one experiencing this problem? anybody else running cucumber in other languages? 2009/2/14 Oliver Barnes : > Hello, > > I've just installed cucumber 0.1.99, and it looks like the Portuguese > step keywords aren't recognized for some reason. I'm following this >

Re: [rspec-users] What rescue hooks

2009-02-17 Thread David Chelimsky
On Fri, Feb 13, 2009 at 5:20 PM, Nathan Wilmes wrote: > 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.us

Re: [rspec-users] [Cucumber] Level of features / Feature dependent steps

2009-02-17 Thread Jonathan Linowes
On Feb 17, 2009, at 3:27 PM, Lenny Marks wrote: Forgive the long post, just looking for input/advice/alternate opinions.. Like many I think that going through the exercise of framing user requests in Cucumber terms(Features, Scenarios..) really helps facilitate necessary conversations an

[rspec-users] [Cucumber] Level of features / Feature dependent steps

2009-02-17 Thread Lenny Marks
Forgive the long post, just looking for input/advice/alternate opinions.. Like many I think that going through the exercise of framing user requests in Cucumber terms(Features, Scenarios..) really helps facilitate necessary conversations and avoid time wasted implementing the wrong thing(

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

2009-02-17 Thread Chris Flipse
> > Ok, so I tried just sticking an "ENV['HTTPS'] = 'on'" in my > spec/spec_helper.rb file and re-running my spec suite. Looks like this is > not enough in itself, as I got about 77 spec failures, all of them > apparently caused by "ssl?" returning false and producing unwanted > redirects. > Rails

Re: [rspec-users] how to write nested XPath matchers

2009-02-17 Thread David Chelimsky
On Mon, Feb 16, 2009 at 8:21 PM, Phlip wrote: > David Chelimsky wrote: > >> When RSpec is used as customer facing, they see the docstrings >> (strings passed to describe() and it()), not the internal code. That's >> for developers. > > Then why the .should stuff? I'm a developer - technically - an