Commit 966dec6b5fefe8d82e3abc61cf7fca7f5812a69f
1 parent
6390f13e
Exists in
master
and in
1 other branch
test that serialized attributes are casting to string
Showing
1 changed file
with
18 additions
and
0 deletions
Show diff stats
... | ... | @@ -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 | + | ... | ... |