[rspec-users] File creation

2010-04-22 Thread ben rooney
I have a model that generates the authorization_rules.rb for declarative_auth. I am not sure how I can go about testing the model - apart from anything I don't want my test to over-write the file - so, er, I am not quite sure how to go about it. I *could* have some sort of sniffer in my model to s

[rspec-users] Spec-ing delayed_jobs in the future

2010-04-22 Thread Steve Klabnik
I've been looking into rspec-ing delayed_jobs lately, and I found a few resources on testing jobs that execute right away. But I couldn't find any that delt with testing a job that is delayed a week in the future, for example. Does anyone have any good resources on this? I'd appreciate it. Thanks

Re: [rspec-users] [Cucumber:4066] Cucumber vs, RSpec

2010-04-22 Thread Zach Dennis
> I just got back from the Great Lakes Ruby Bash. They had several good > presentations, two specific to BDD and Cucumber. I also talked to > several CEOs and devs afterwards, and the overall takeaway I gathered > was a shift to less RSpec and more Cucumber. Some people even claimed > a 90/10 split

Re: [rspec-users] [Cucumber:4095] Cucumber vs, RSpec

2010-04-22 Thread Zach Dennis
On Wed, Apr 21, 2010 at 7:05 PM, Pat Maddox wrote: > Cucumber features are the best tool I know of for capturing requirements > from my customer. RSpec specs are the best tool I know of for communicating > intent and gauging code quality among the developer team. > > I'm not sure how exactly you'

[rspec-users] running: 'rake spec' mixes ApplicationHelper into my ActiveRecord model instances

2010-04-22 Thread Stephen Bannasch
When I run the a controllers spec test on it's own I get just what I expect. But when I run the same tests with: rake spec I get some strange errors because ApplicationHelper ends up getting mixed into my ActiveRecord model instances. Is this normal? It seems nutty to me -- maybe it's a proble

[rspec-users] rspec2 - set example as pending?

2010-04-22 Thread John Dell
I'm trying to mark an example as pending w/rspec2 & rails3, but I'm getting: Failure/Error: pending undefined local variable or method `pending' for # Is 'pending' pending for rspec2? ;-) Thanks, John ___ rspec-users mailing list rspec-users@rubyforge.

Re: [rspec-users] rspec2 - set example as pending?

2010-04-22 Thread Nicolás Sanguinetti
Yeah, just that now you define your entire example as pending. So instead of: it "does something" do pending this_will_fail end You now do pending "does something" do this_will_fail end Cheers On Thu, Apr 22, 2010 at 7:11 PM, John Dell wrote: > I'm trying to mark an example as pending w

Re: [rspec-users] rspec2 - set example as pending?

2010-04-22 Thread David Chelimsky
> > On Thu, Apr 22, 2010 at 7:11 PM, John Dell wrote: >> I'm trying to mark an example as pending w/rspec2 & rails3, but I'm getting: >> >> Failure/Error: pending >> undefined local variable or method `pending' for >> # >> >> Is 'pending' pending for rspec2? ;-) >> >> Thanks, >> John On Apr 2

Re: [rspec-users] [Cucumber:4066] Cucumber vs, RSpec

2010-04-22 Thread Ed Howland
+1 BTW, here is the URL for his talk: http://www.benmabey.com/2009/03/14/slides-from-outside-in-development-with-cucumber/ It is back in the webrat days (pre-capybara). And the World() method is simpler nowadays. Cheers, Ed Ed Howland http://greenprogrammer.wordpress.com http://twitter.com/e

Re: [rspec-users] rspec2 - set example as pending?

2010-04-22 Thread John Dell
2010/4/22 Nicolás Sanguinetti > Yeah, just that now you define your entire example as pending. So instead > of: > > You now do > > pending "does something" do > this_will_fail > end > Thank you! I like it, very clean. Is that documented somehwere? I couldn't find it. John ___

Re: [rspec-users] [Cucumber:4144] Cucumber vs, RSpec

2010-04-22 Thread Pat Maddox
On Apr 22, 2010, at 9:57 AM, Zach Moazeni wrote: > I'll jump in here as I was one of the guys who presented a shift in my > testing strategies at the Great Lakes Ruby Bash. > > To give some context, I've built projects that were very focused on isolation > tests that used Rspec and Mocks to ass

Re: [rspec-users] running: 'rake spec' mixes ApplicationHelper into my ActiveRecord model instances

2010-04-22 Thread Stephen Bannasch
solved ... Running the ApplicationHelper spec tests mixed the ApplicationHelper methods into Object. Actually I don't remember making the helper being tested or the spec ;-) Might have been generated by restful authentication ... Here's what's in spec/helpers/application_helper_spec.rb (which