15 Nov '13, 8pm

I wrote a view spec #rails

For almost two years now, I’ve been telling people I never write view specs for my Rails applications. They’re hard to write and harder to manage over time. I don’t even talk about them in Everyday Rails Testing with RSpec –as a general rule, I try to either test view-related matters in my feature specs, or better yet, extract the stuff that needs testing into more testable layers of my application. So why did I write a view spec the other day? In this case, I needed to test-drive some inline JavaScript (inline because it injects server-side environment variables into a larger JavaScript library, but not enough to warrant a more thorough solution like gon ). It’s kind of difficult to test the end result of doing this in a feature spec, at least without massively slowing down the test suite. View specs to the rescue? Here’s the general idea: In this case, the environment va...

Full article: http://everydayrails.com/2013/11/15/i-wrote-a-view-spec.html

Tweets

もう揚陸艦がフィリピン救援「ダマヤン作戦」で働き始めてる。レイテ島近海で、揚陸艦アシュランドから発進するMV-22。 

もう揚陸艦がフィリピン救援「ダマヤン作戦」で働き始めてる。レイテ島近海で、揚陸艦アシュランドか...

navy.mil 22 Nov '13, 5pm

LEYTE GULF (Nov. 22 2013) Aviation Boatswain's Mate (Handling) Airman Jennifer L. Confer, from Buffalo, N.Y., directs a V-...

空母ジョージ・ワシントンの浄水機能を使った水を入れた大量のポリタンクは、こうしてヘリに積まれて被災地に届けられます。

空母ジョージ・ワシントンの浄水機能を使った水を入れた大量のポリタンクは、こうしてヘリに積まれて...

navy.mil 18 Nov '13, 8am

PHILIPPINE SEA (Nov. 16, 2013) Sailors load fresh water onto an MH-60S Seahawk from the "Golden Falcons" of Helicopter Sea...

空母ジョージ・ワシントンの浄水機能を使った水が入れられた大量のポリタンク。これがすべて被災地に運ばれます。

空母ジョージ・ワシントンの浄水機能を使った水が入れられた大量のポリタンク。これがすべて被災地に...

navy.mil 18 Nov '13, 8am

PHILIPPINE SEA (Nov. 16, 2013) Sailors pass containers of fresh water, which will be loaded onto helicopters and transport...

I wrote a new article on @iRunFar. Read it here!

I wrote a new article on @iRunFar. Read it here!

irunfar.com 27 Nov '13, 12pm

I started mountain running at the Hardrock Hundred , which is why I have such strong sentiments toward the aspects in moun...

View-Master Video Player!

View-Master Video Player!

hackaday.com 14 Nov '13, 3am

[Alec] just sent us this great project he’s been working on. Converting an antique View-Master from the early 50′s into a ...

if someone

if someone

sothebyshomes.com 16 Nov '13, 2am

Situated on a magical promontory with views of the city and ocean, Lake Hollywood, the vineyards and the iconic Hollywood ...