31 Oct '12, 5pm

Make tests faster, more readable, and more maintainable by avoiding RSpec's subject, let, and before:

describe FactoryGirl::EvaluatorClassDefiner do let(:simple_attribute) { stub("simple attribute", name: :simple, to_proc: -> { 1 }) } let(:relative_attribute) { stub("relative attribute", name: :relative, to_proc: -> { simple + 1 }) } let(:attribute_that_raises_a_second_time) { stub( "attribute that would raise without a cache", name: :raises_without_proper_cache, to_proc: -> { raise "failed" if @run; @run = true; nil } ) } let(:attributes) { [ simple_attribute, relative_attribute, attribute_that_raises_a_second_time ] } let(:class_definer) { FactoryGirl::EvaluatorClassDefiner.new( attributes, FactoryGirl::Evaluator ) } let(:evaluator) { class_definer.evaluator_class.new( stub("build strategy", add_observer: true) ) } it "adds each attribute to the evaluator" do evaluator.simple.should eq 1 end it "evaluates the block in the context of the evaluator" do evaluator.relative.s...

Full article: http://robots.thoughtbot.com/post/34709581001/lets-not

Tweets

Democrat Denver Mayor says "Let's face it we're...

ace.mu.nu 31 Oct '12, 10pm

« Irreconcilable Differences: Either The State Polls Are Divorced From Reality, Or the National Polls Are | Main | Toure: ...

#SFGiants Fans - Let everyone know who the #Wor...

finishline.com 02 Nov '12, 2am

The North Face Shoes & Apparel

Let's try the Apom Durian

Let's try the Apom Durian

facebook.com 06 Nov '12, 12am

Timeline Photos Back to Album · www.foodstreet.com.my's Photos · www.foodstreet.com.my's Page Previous · Next Drag the cor...

Stupid mistakes are stupid. Let's stop making t...

baristing.blogspot.com 01 Nov '12, 11pm

There are a lot of things worse than bad coffee, of course. That nearly goes without saying, but I feel like putting it ou...

ICYMI yesterday: For Sequestration People voted...

ace.mu.nu 07 Nov '12, 7pm

The lame duck will feature a lot of talk about "grand bargains". No Just no. While the GOP and conservatives were crushed ...

No Blood Tests For Doping In Africa

news.runnersworld.com 01 Nov '12, 3pm

By Scott Douglas The World Anti-Doping Agency is unable to conduct blood tests for doping in East Africa, a situation that...

Let's VOTE for @TaufikBatisah SG12 now!!! #APM2...

mediacorp.sg 04 Nov '12, 4pm

Pinned pages quickly deliver the content you want most Open your favourite MSN pages from the Windows taskbar without open...

What's New from Indigo by Clark's?: This beats a stock photo any day, don't you agree? Let me introduce you to...

What's New from Indigo by Clark's?: This beats ...

barkingdogshoes.com 02 Nov '12, 4pm

This beats a stock photo any day, don't you agree? Let me introduce you to Aurelia of You Frill Me and her Indigo Town Clu...

Ruby 2.0 patch that could make Rails startup 2....

bugs.ruby-lang.org 01 Nov '12, 7am

Yehuda Katz (ph) 718.877.1325 On Tue, Oct 16, 2012 at 12:21 AM, gregprice (Greg Price) <[email protected]>wrote: > > Issue #71...

blogged at

blogged at

missypixie.blogspot.com 12 Nov '12, 3am

Let the sky fall, when it crumbles Popping by for a quick update cos tomorrow is a holiday (whooppppeeeee!!) and that prob...

scientists

scientists

environmentalhealthnews.org 01 Nov '12, 8pm

Importantly, despite their widespread use, the human and wildlife toxicity of herbicides has not been well studied. Eviden...

IT’S DEMI LOVATO’S MANSION! and more pics here

realestalker.blogspot.com 03 Nov '12, 5pm

Kim Zolciak Re-Lists Her Wig Storage Facility in D... We're back... Happy Turkey Day! Another Housewife's House on the Blo...

Keating eying third straight LET title

Keating eying third straight LET title

ladieseuropeantour.com 24 Oct '12, 8am

Australian Stacey Keating is looking to capture her third straight Ladies European Tour title as she plays in the China Su...

Can Women Come Back Faster After Pregnancy?

running.competitor.com 01 Nov '12, 8pm

Can Women Come Back Faster After Pregnancy? By Kelly O'Mara Published 4 hours ago comments Tweet Share Share Print Kara Go...

Yes: Food Labels Would Let Consumers Make Infor...

organicconsumers.org 02 Nov '12, 3pm

For related articles and more information, please visit OCA's Genetic Engineering page , Millions Against Monsanto page an...