This commit is contained in:
2014-07-30 10:15:40 +05:30
parent f5beed1264
commit 1871c64e6c
35 changed files with 429 additions and 12 deletions

View File

@@ -0,0 +1,15 @@
require 'spec_helper'
describe "comments/new" do
before(:each) do
assign(:comment, stub_model(Comment).as_new_record)
end
it "renders new comment form" do
render
# Run the generator again with the --webrat flag if you want to use webrat matchers
assert_select "form[action=?][method=?]", comments_path, "post" do
end
end
end