+++ /dev/null
-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
+++ /dev/null
-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
+++ /dev/null
-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
+++ /dev/null
-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
+++ /dev/null
-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
+++ /dev/null
-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