Commit 1f12e5f7

mo k <mo@mokhan.ca>
2013-02-10 03:25:48
remove view spec
1 parent 00adc0e
spec/routing/categories_routing_spec.rb
@@ -3,7 +3,7 @@ require "spec_helper"
 describe CategoriesController do
   describe "routing" do
     it "routes to #show" do
-      get("/categories/fondant").should route_to("categories#show", :id => "fondant", :method => 'GET')
+      get("/categories/fondant").should route_to({"id"=>"fondant", "controller"=>"categories", "action"=>"show"})
     end
   end
 end
spec/routing/profiles_routing_spec.rb
@@ -7,9 +7,6 @@ describe ProfilesController do
     it "routes to #show" do
       get("/profiles/1").should route_to("profiles#show", :id => "1")
     end
-    it "routes to my profile" do
-      get("mine").should route_to("profiles#mine", :method => 'GET')
-    end
     it "routes to my favorites" do
       get("favorites").should route_to("profiles#favorites", :method => "GET")
     end
spec/views/tutorials/new.html.erb_spec.rb
@@ -1,22 +0,0 @@
-require 'spec_helper'
-
-describe "tutorials/new" do
-  before(:each) do
-    assign(:tutorial, stub_model(Tutorial,
-      :heading => "MyString",
-      :description => "MyText",
-      :url => "MyString"
-    ).as_new_record)
-  end
-
-  it "renders new tutorial form" do
-    render
-
-    # Run the generator again with the --webrat flag if you want to use webrat matchers
-    assert_select "form", :action => tutorials_path, :method => "post" do
-      assert_select "input#tutorial_heading", :name => "tutorial[heading]"
-      assert_select "textarea#tutorial_description", :name => "tutorial[description]"
-      assert_select "input#tutorial_url", :name => "tutorial[url]"
-    end
-  end
-end