Commit b43b500dbe80ba6ecb1d4d03b4d8ce12ae8ef7db
Exists in
master
and in
1 other branch
Merge branch 'fix_user_value_bug'
Showing
2 changed files
with
19 additions
and
1 deletions
Show diff stats
app/views/notices/_user_attributes.html.haml
| @@ -0,0 +1,18 @@ | @@ -0,0 +1,18 @@ | ||
| 1 | +require 'spec_helper' | ||
| 2 | + | ||
| 3 | +describe "notices/_user_attributes.html.haml" do | ||
| 4 | + describe 'autolink' do | ||
| 5 | + let(:notice) do | ||
| 6 | + user_attributes = { 'foo' => {'bar' => 'http://example.com'} } | ||
| 7 | + Fabricate(:notice, :user_attributes => user_attributes) | ||
| 8 | + end | ||
| 9 | + | ||
| 10 | + it "renders table with user attributes" do | ||
| 11 | + assign :app, notice.err.app | ||
| 12 | + | ||
| 13 | + render "notices/user_attributes", :user => notice.user_attributes | ||
| 14 | + rendered.should have_link('http://example.com') | ||
| 15 | + end | ||
| 16 | + end | ||
| 17 | +end | ||
| 18 | + |