OSDN Git Service

delete view test and req test
authoryasushiito <yas@pen-chan.jp>
Mon, 25 Jun 2012 09:48:26 +0000 (18:48 +0900)
committeryasushiito <yas@pen-chan.jp>
Mon, 25 Jun 2012 09:48:26 +0000 (18:48 +0900)
spec/requests/comics_spec.rb [deleted file]
spec/routing/comics_routing_spec.rb [deleted file]
spec/views/comics/edit.html.erb_spec.rb [deleted file]
spec/views/comics/index.html.erb_spec.rb [deleted file]
spec/views/comics/new.html.erb_spec.rb [deleted file]
spec/views/comics/show.html.erb_spec.rb [deleted file]

diff --git a/spec/requests/comics_spec.rb b/spec/requests/comics_spec.rb
deleted file mode 100644 (file)
index 20de573..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-require 'spec_helper'
-
-describe "Comics" do
-  describe "GET /comics" do
-    it "works! (now write some real specs)" do
-      # Run the generator again with the --webrat flag if you want to use webrat methods/matchers
-      get comics_path
-      response.status.should be(200)
-    end
-  end
-end
diff --git a/spec/routing/comics_routing_spec.rb b/spec/routing/comics_routing_spec.rb
deleted file mode 100644 (file)
index 173c1ec..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-require "spec_helper"
-
-describe ComicsController do
-  describe "routing" do
-
-    it "routes to #index" do
-      get("/comics").should route_to("comics#index")
-    end
-
-    it "routes to #new" do
-      get("/comics/new").should route_to("comics#new")
-    end
-
-    it "routes to #show" do
-      get("/comics/1").should route_to("comics#show", :id => "1")
-    end
-
-    it "routes to #edit" do
-      get("/comics/1/edit").should route_to("comics#edit", :id => "1")
-    end
-
-    it "routes to #create" do
-      post("/comics").should route_to("comics#create")
-    end
-
-    it "routes to #update" do
-      put("/comics/1").should route_to("comics#update", :id => "1")
-    end
-
-    it "routes to #destroy" do
-      delete("/comics/1").should route_to("comics#destroy", :id => "1")
-    end
-
-  end
-end
diff --git a/spec/views/comics/edit.html.erb_spec.rb b/spec/views/comics/edit.html.erb_spec.rb
deleted file mode 100644 (file)
index 42357cc..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-require 'spec_helper'
-
-describe "comics/edit.html.erb" do
-  before(:each) do
-    @comic = assign(:comic, stub_model(Comic))
-  end
-
-  it "renders the edit comic form" do
-    render
-
-    # Run the generator again with the --webrat flag if you want to use webrat matchers
-    assert_select "form", :action => comics_path(@comic), :method => "post" do
-    end
-  end
-end
diff --git a/spec/views/comics/index.html.erb_spec.rb b/spec/views/comics/index.html.erb_spec.rb
deleted file mode 100644 (file)
index 306c04c..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-require 'spec_helper'
-
-describe "comics/index.html.erb" do
-  before(:each) do
-    assign(:comics, [
-      stub_model(Comic),
-      stub_model(Comic)
-    ])
-  end
-
-  it "renders a list of comics" do
-    render
-  end
-end
diff --git a/spec/views/comics/new.html.erb_spec.rb b/spec/views/comics/new.html.erb_spec.rb
deleted file mode 100644 (file)
index d850215..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-require 'spec_helper'
-
-describe "comics/new.html.erb" do
-  before(:each) do
-    assign(:comic, stub_model(Comic).as_new_record)
-  end
-
-  it "renders new comic form" do
-    render
-
-    # Run the generator again with the --webrat flag if you want to use webrat matchers
-    assert_select "form", :action => comics_path, :method => "post" do
-    end
-  end
-end
diff --git a/spec/views/comics/show.html.erb_spec.rb b/spec/views/comics/show.html.erb_spec.rb
deleted file mode 100644 (file)
index b0fc5f2..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-require 'spec_helper'
-
-describe "comics/show.html.erb" do
-  before(:each) do
-    @comic = assign(:comic, stub_model(Comic))
-  end
-
-  it "renders attributes in <p>" do
-    render
-  end
-end