mightystrong/blocmetrics — pull request #1 by mightystrong (2014-07-11 17:05:16+00:00)
Title: Sites

I had trouble with the following code:

```cucumber
Then /^the user should see a unique Javascript snippet$/ do
expect(page).to have_selector("text#snippet-id")
# expect(Site.snippet).to_not be_blank
end
```

See the commented out part. Kept getting a no method error for snippet, even thought when I run the same command with name, it works.

I also attempted to auto-generate the snippet code. Know that it's wrong but needed to test if I could pull it into the database first.