summaryrefslogtreecommitdiff
path: root/spec/views/alerts/new.html.erb_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/views/alerts/new.html.erb_spec.rb')
-rw-r--r--spec/views/alerts/new.html.erb_spec.rb20
1 files changed, 0 insertions, 20 deletions
diff --git a/spec/views/alerts/new.html.erb_spec.rb b/spec/views/alerts/new.html.erb_spec.rb
deleted file mode 100644
index e38cbd3..0000000
--- a/spec/views/alerts/new.html.erb_spec.rb
+++ /dev/null
@@ -1,20 +0,0 @@
-require 'spec_helper'
-
-describe "alerts/new" do
- before(:each) do
- assign(:alert, stub_model(Alert,
- :author => nil,
- :message => "MyText"
- ).as_new_record)
- end
-
- it "renders new alert form" do
- render
-
- # Run the generator again with the --webrat flag if you want to use webrat matchers
- assert_select "form[action=?][method=?]", alerts_path, "post" do
- assert_select "input#alert_author[name=?]", "alert[author]"
- assert_select "textarea#alert_message[name=?]", "alert[message]"
- end
- end
-end