blob: d837f26c64a958b0a46d576c42eae6b23d815786 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
require 'spec_helper'
describe "alerts/edit" do
before(:each) do
@alert = assign(:alert, stub_model(Alert,
:author => nil,
:message => "MyText"
))
end
it "renders the edit alert form" do
render
# Run the generator again with the --webrat flag if you want to use webrat matchers
assert_select "form[action=?][method=?]", alert_path(@alert), "post" do
assert_select "input#alert_author[name=?]", "alert[author]"
assert_select "textarea#alert_message[name=?]", "alert[message]"
end
end
end
|