summaryrefslogtreecommitdiff
path: root/spec/views/alerts/show.html.erb_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/views/alerts/show.html.erb_spec.rb')
-rw-r--r--spec/views/alerts/show.html.erb_spec.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/spec/views/alerts/show.html.erb_spec.rb b/spec/views/alerts/show.html.erb_spec.rb
new file mode 100644
index 0000000..267c9f1
--- /dev/null
+++ b/spec/views/alerts/show.html.erb_spec.rb
@@ -0,0 +1,17 @@
+require 'spec_helper'
+
+describe "alerts/show" do
+ before(:each) do
+ @alert = assign(:alert, stub_model(Alert,
+ :author => nil,
+ :message => "MyText"
+ ))
+ end
+
+ it "renders attributes in <p>" do
+ render
+ # Run the generator again with the --webrat flag if you want to use webrat matchers
+ rendered.should match(//)
+ rendered.should match(/MyText/)
+ end
+end