Commit 966dec6b5fefe8d82e3abc61cf7fca7f5812a69f

Authored by Vasiliy Ermolovich
1 parent 6390f13e
Exists in master and in 1 other branch production

test that serialized attributes are casting to string

spec/views/notices/_user_attributes.html.haml_spec.rb 0 → 100644
... ... @@ -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 +
... ...