OSDN Git Service

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