OSDN Git Service

import all source code
[pettanr/pettanr.git] / spec / views / speach_baloons / new.html.erb_spec.rb
diff --git a/spec/views/speach_baloons/new.html.erb_spec.rb b/spec/views/speach_baloons/new.html.erb_spec.rb
new file mode 100644 (file)
index 0000000..3f23037
--- /dev/null
@@ -0,0 +1,15 @@
+require 'spec_helper'
+
+describe "speach_baloons/new.html.erb" do
+  before(:each) do
+    assign(:speach_baloon, stub_model(SpeachBaloon).as_new_record)
+  end
+
+  it "renders new speach_baloon form" do
+    render
+
+    # Run the generator again with the --webrat flag if you want to use webrat matchers
+    assert_select "form", :action => speach_baloons_path, :method => "post" do
+    end
+  end
+end