diff --git a/spec/views/notices/_user_attributes.html.haml_spec.rb b/spec/views/notices/_user_attributes.html.haml_spec.rb new file mode 100644 index 0000000..e094793 --- /dev/null +++ b/spec/views/notices/_user_attributes.html.haml_spec.rb @@ -0,0 +1,18 @@ +require 'spec_helper' + +describe "notices/_user_attributes.html.haml" do + describe 'autolink' do + let(:notice) do + user_attributes = { 'foo' => {'bar' => 'http://example.com'} } + Fabricate(:notice, :user_attributes => user_attributes) + end + + it "renders table with user attributes" do + assign :app, notice.err.app + + render "notices/user_attributes", :user => notice.user_attributes + rendered.should have_link('http://example.com') + end + end +end + -- libgit2 0.21.2