Re: [rspec-users] cucumber is_admin? testing

2011-11-24 Thread Alex Whiteland
Aslak, I send a message to group email, but I haven't answer yet. -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] cucumber is_admin? testing

2011-11-24 Thread aslak hellesoy
On Thu, Nov 24, 2011 at 11:12 AM, Alex Whiteland wrote: > Aslak, I send a message to group email, but I haven't answer yet. > What email did you send to? We haven't received anything from you. I'm assuming you're using a regular mail client? > -- > Posted via http://www.ruby-forum.com/. > __

Re: [rspec-users] customize description and failure messages when writing rspec matcher dsl

2011-11-24 Thread David Chelimsky
On Nov 24, 2011, at 12:48 AM, Anran Yang wrote: > Dear all, > > I recently tried to write a custom matcher using rspec dsl, which I'd like to > use as the following: > > ==hpgc_spec.rb=== > > require "spec_helper" > > describe Hpgc do > specify do > should be_st

Re: [rspec-users] cucumber is_admin? testing

2011-11-24 Thread Alex Whiteland
> What email did you send to? cu...@googlegroups.com > I'm assuming you're using a regular mail client? I work from browser. I sent to you from awhiteland.37.com (first . replace to @) -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing

Re: [rspec-users] test for "lambda {...}.should change(x, y).by(z)" failing.. ?

2011-11-24 Thread David Chelimsky
On Nov 23, 2011, at 3:33 PM, Patrick J. Collins wrote: > I wrote a test that looked like this: > > it "increases the user's reputation" do > lambda { @comment.update_attribute(:helpful, true) }.should > change(@seller.reload, > :reputation_score).by(Event.reputation_change_

[rspec-users] rake spec aborted, how to debug

2011-11-24 Thread Marko Anastasov
Hello, I'm having an issue running specs on a Rails project. Here's how bundle exec rake spec --trace ends at a random point after some seconds of hanging with a high CPU usage: https://gist.github.com/1392208 I say "a random point" because I can run the problematic spec alone without problems, a

Re: [rspec-users] test for "lambda {...}.should change(x, y).by(z)" failing.. ?

2011-11-24 Thread Patrick J. Collins
> As you can see, @seller.reload is only evaluated once, and its reputation > score is going to be the same both times. Aha.. Makes perfect sense. Thanks. > Tangent: this is testing two things - @seller.reputation_score and > Event.reputation_change_for(:mark_helpful). If either is failing to w