On Wed, Apr 14, 2010 at 2:28 PM, rogerdpack wrote:
> change it so that if raise_error is called without parameters, and it
> catches NoMethodError, it outputs a warning somehow.
>
> Thoughts?
+1; I have been burned by this several times, and this is seems like
an elegant solution to clear up the
A bit of a delayed reply, but I appreciate all the feedback everyone.
What a helpful list this is! :)
Nicolás Sanguinetti on 2010-01-28 at 15:45:
> You're definitely testing too much implementation and not enough behavior.
This was the overwhelming opinion of the group, and I see what you are
al
Ashley Moran on 2010-01-28 at 13:28:
>
> On Jan 28, 2010, at 1:29 pm, Paul Hinze wrote:
>
> > I believe the lack of ability to use this notation comes down to a ruby
> > limitation, but I'm not sure. If that's the case, then we would need a
> > specific arg
Hey speclers,
My spec-fu is failing me on a message expectation in which I would like to
verify that the block passed to a certain method yields the proper
value. I would like to be able to say something like:
def bar
# .. some code
foo do
'bar' # want to verify this value
end
end
des
On Sun, Jan 24, 2010 at 5:10 PM, Saverio Miroddi wrote:
> David Chelimsky wrote:
>> It'd be much easier to help you if you could provide an example more
>> representative of what you are actually trying to accomplish.
>
> class MyModel
> def my_parent
> self.find( my_parent_id )
> end
> end
>
Peter Hicks on 2010-01-02 at 16:13:
> Hi Phillip
>
> Phillip Koebbe wrote:
>
>> Have you read about fixtures? It sounds like just what you're looking
>> for.
>
> I'm using fixtures already - they're great. I can't find a way to load a
> specific fixture in to a table. If I could do that, I coul
Given this simple cucumber feature (related to another rspec bug I am
working on):
http://gist.github.com/266335
I'm fighting with this error messages that _only_ shows up in certain
situations that I can't quite pin down (rake features breaks, individual
cucumber run works, rake with debugger
Wincent Colaiuta on 2009-12-09 at 13:39:
> El 09/12/2009, a las 19:15, David Chelimsky escribió:
>
>> On Wed, Dec 9, 2009 at 11:55 AM, Pat Maddox > > wrote:
>>> [...@admin, @allowed_user].should all(be_allowed_to_visit(url))
>>> [...@admin, @allowed_user].should all_be_allowed_to_visit(url)
>
>>>
P. A. on 2009-12-02 at 10:13:
> $ cucumber #=> color output
> $ cucumber | less -R #=> monochrome
Ah now I see what you're saying. We're getting burned by this line:
http://github.com/aslakhellesoy/cucumber/blob/master/lib/cucumber/formatter/ansicolor.rb#L20
> Term::ANSIColor.coloring = false i
P. A. on 2009-12-02 at 09:08:
> Is it possible to get color text in less, more or other pagers while
> piping the color output of Cucumber and RSpec?
Have a look at these options for `less`:
>From LESS(1) man page:
> -r or --raw-control-chars
>
> Causes "raw" control characters to be disp
JGailor on 2009-11-11 at 16:11:
> I'm trying to stub File.new so I can return a StringIO object from it
> to set some expectation and make sure the subject under test is
> behaving correctly, but calling readline() on the StringIO object in
> the subject always returns nil.
>
> data = <<-DATA
>
11 matches
Mail list logo