From 18da412dd811fa124afa6ee256d3ab17ba60b673 Mon Sep 17 00:00:00 2001 From: Dhruv Kapadia Date: Wed, 28 Apr 2010 13:47:32 -0400 Subject: [PATCH] Removing vestigial code causing failing spec tests --- app/views/choices/edit.html.erb | 12 ------------ app/views/choices/index.html.erb | 18 ------------------ app/views/choices/new.html.erb | 11 ----------- app/views/choices/show.html.erb | 3 --- app/views/clicks/edit.html.erb | 24 ------------------------ app/views/clicks/index.html.erb | 25 ------------------------- app/views/clicks/new.html.erb | 23 ----------------------- app/views/clicks/show.html.erb | 18 ------------------ app/views/prompts/edit.html.erb | 12 ------------ app/views/prompts/index.html.erb | 18 ------------------ app/views/prompts/new.html.erb | 11 ----------- app/views/prompts/show.html.erb | 3 --- spec/routing/items_routing_spec.rb | 74 -------------------------------------------------------------------------- spec/views/choices/edit.html.erb_spec.rb | 18 ------------------ spec/views/choices/index.html.erb_spec.rb | 16 ---------------- spec/views/choices/new.html.erb_spec.rb | 18 ------------------ spec/views/choices/show.html.erb_spec.rb | 12 ------------ spec/views/clicks/edit.html.erb_spec.rb | 24 ------------------------ spec/views/clicks/index.html.erb_spec.rb | 27 --------------------------- spec/views/clicks/new.html.erb_spec.rb | 24 ------------------------ spec/views/clicks/show.html.erb_spec.rb | 19 ------------------- spec/views/items/edit.html.erb_spec.rb | 18 ------------------ spec/views/items/index.html.erb_spec.rb | 16 ---------------- spec/views/items/new.html.erb_spec.rb | 18 ------------------ spec/views/items/show.html.erb_spec.rb | 12 ------------ spec/views/prompts/edit.html.erb_spec.rb | 18 ------------------ spec/views/prompts/index.html.erb_spec.rb | 16 ---------------- spec/views/prompts/new.html.erb_spec.rb | 18 ------------------ spec/views/prompts/show.html.erb_spec.rb | 12 ------------ spec/views/questions/edit.html.erb_spec.rb | 18 ------------------ spec/views/questions/index.html.erb_spec.rb | 16 ---------------- spec/views/questions/new.html.erb_spec.rb | 18 ------------------ spec/views/questions/show.html.erb_spec.rb | 12 ------------ 33 files changed, 0 insertions(+), 602 deletions(-) delete mode 100644 app/views/choices/edit.html.erb delete mode 100644 app/views/choices/index.html.erb delete mode 100644 app/views/choices/new.html.erb delete mode 100644 app/views/choices/show.html.erb delete mode 100644 app/views/clicks/edit.html.erb delete mode 100644 app/views/clicks/index.html.erb delete mode 100644 app/views/clicks/new.html.erb delete mode 100644 app/views/clicks/show.html.erb delete mode 100644 app/views/prompts/edit.html.erb delete mode 100644 app/views/prompts/index.html.erb delete mode 100644 app/views/prompts/new.html.erb delete mode 100644 app/views/prompts/show.html.erb delete mode 100644 spec/routing/items_routing_spec.rb delete mode 100644 spec/views/choices/edit.html.erb_spec.rb delete mode 100644 spec/views/choices/index.html.erb_spec.rb delete mode 100644 spec/views/choices/new.html.erb_spec.rb delete mode 100644 spec/views/choices/show.html.erb_spec.rb delete mode 100644 spec/views/clicks/edit.html.erb_spec.rb delete mode 100644 spec/views/clicks/index.html.erb_spec.rb delete mode 100644 spec/views/clicks/new.html.erb_spec.rb delete mode 100644 spec/views/clicks/show.html.erb_spec.rb delete mode 100644 spec/views/items/edit.html.erb_spec.rb delete mode 100644 spec/views/items/index.html.erb_spec.rb delete mode 100644 spec/views/items/new.html.erb_spec.rb delete mode 100644 spec/views/items/show.html.erb_spec.rb delete mode 100644 spec/views/prompts/edit.html.erb_spec.rb delete mode 100644 spec/views/prompts/index.html.erb_spec.rb delete mode 100644 spec/views/prompts/new.html.erb_spec.rb delete mode 100644 spec/views/prompts/show.html.erb_spec.rb delete mode 100644 spec/views/questions/edit.html.erb_spec.rb delete mode 100644 spec/views/questions/index.html.erb_spec.rb delete mode 100644 spec/views/questions/new.html.erb_spec.rb delete mode 100644 spec/views/questions/show.html.erb_spec.rb diff --git a/app/views/choices/edit.html.erb b/app/views/choices/edit.html.erb deleted file mode 100644 index 6a94a61..0000000 --- a/app/views/choices/edit.html.erb +++ /dev/null @@ -1,12 +0,0 @@ -

Editing choice

- -<% form_for(@choice) do |f| %> - <%= f.error_messages %> - -

- <%= f.submit 'Update' %> -

-<% end %> - -<%= link_to 'Show', @choice %> | -<%= link_to 'Back', choices_path %> \ No newline at end of file diff --git a/app/views/choices/index.html.erb b/app/views/choices/index.html.erb deleted file mode 100644 index 99fffba..0000000 --- a/app/views/choices/index.html.erb +++ /dev/null @@ -1,18 +0,0 @@ -

Listing choices

- - - - - -<% @choices.each do |choice| %> - - - - - -<% end %> -
<%= link_to 'Show', choice %><%= link_to 'Edit', edit_choice_path(choice) %><%= link_to 'Destroy', choice, :confirm => 'Are you sure?', :method => :delete %>
- -
- -<%= link_to 'New choice', new_choice_path %> \ No newline at end of file diff --git a/app/views/choices/new.html.erb b/app/views/choices/new.html.erb deleted file mode 100644 index 8e5b335..0000000 --- a/app/views/choices/new.html.erb +++ /dev/null @@ -1,11 +0,0 @@ -

New choice

- -<% form_for(@choice) do |f| %> - <%= f.error_messages %> - -

- <%= f.submit 'Create' %> -

-<% end %> - -<%= link_to 'Back', choices_path %> \ No newline at end of file diff --git a/app/views/choices/show.html.erb b/app/views/choices/show.html.erb deleted file mode 100644 index 4170c7e..0000000 --- a/app/views/choices/show.html.erb +++ /dev/null @@ -1,3 +0,0 @@ - -<%= link_to 'Edit', edit_choice_path(@choice) %> | -<%= link_to 'Back', choices_path %> \ No newline at end of file diff --git a/app/views/clicks/edit.html.erb b/app/views/clicks/edit.html.erb deleted file mode 100644 index dbfb66b..0000000 --- a/app/views/clicks/edit.html.erb +++ /dev/null @@ -1,24 +0,0 @@ -

Editing click

- -<% form_for(@click) do |f| %> - <%= f.error_messages %> - -

- <%= f.label :site_id %>
- <%= f.text_field :site_id %> -

-

- <%= f.label :visitor_id %>
- <%= f.text_field :visitor_id %> -

-

- <%= f.label :additional_info %>
- <%= f.text_area :additional_info %> -

-

- <%= f.submit 'Update' %> -

-<% end %> - -<%= link_to 'Show', @click %> | -<%= link_to 'Back', clicks_path %> \ No newline at end of file diff --git a/app/views/clicks/index.html.erb b/app/views/clicks/index.html.erb deleted file mode 100644 index bd607b9..0000000 --- a/app/views/clicks/index.html.erb +++ /dev/null @@ -1,25 +0,0 @@ - - -

Clickstream

- - - - - - - - -<% @clicks.each do |click| %> - - - - - - - -<% end %> -
SiteVisitorAdditional info
<%=h click.site_id %><%=h click.visitor_id %><%=h click.what_was_clicked %><%= link_to 'Show', click %><%= link_to 'Destroy', click, :confirm => 'Are you sure?', :method => :delete %>
- -
- -<%= link_to 'New click', new_click_path %> \ No newline at end of file diff --git a/app/views/clicks/new.html.erb b/app/views/clicks/new.html.erb deleted file mode 100644 index ba82731..0000000 --- a/app/views/clicks/new.html.erb +++ /dev/null @@ -1,23 +0,0 @@ -

New click

- -<% form_for(@click) do |f| %> - <%= f.error_messages %> - -

- <%= f.label :site_id %>
- <%= f.text_field :site_id %> -

-

- <%= f.label :visitor_id %>
- <%= f.text_field :visitor_id %> -

-

- <%= f.label :additional_info %>
- <%= f.text_area :additional_info %> -

-

- <%= f.submit 'Create' %> -

-<% end %> - -<%= link_to 'Back', clicks_path %> \ No newline at end of file diff --git a/app/views/clicks/show.html.erb b/app/views/clicks/show.html.erb deleted file mode 100644 index e829b24..0000000 --- a/app/views/clicks/show.html.erb +++ /dev/null @@ -1,18 +0,0 @@ -

- Site: - <%=h @click.site_id %> -

- -

- Visitor: - <%=h @click.visitor_id %> -

- -

- Additional info: - <%=h @click.additional_info %> -

- - -<%= link_to 'Edit', edit_click_path(@click) %> | -<%= link_to 'Back', clicks_path %> \ No newline at end of file diff --git a/app/views/prompts/edit.html.erb b/app/views/prompts/edit.html.erb deleted file mode 100644 index ea187f8..0000000 --- a/app/views/prompts/edit.html.erb +++ /dev/null @@ -1,12 +0,0 @@ -

Editing prompt

- -<% form_for(@prompt) do |f| %> - <%= f.error_messages %> - -

- <%= f.submit 'Update' %> -

-<% end %> - -<%= link_to 'Show', @prompt %> | -<%= link_to 'Back', prompts_path %> \ No newline at end of file diff --git a/app/views/prompts/index.html.erb b/app/views/prompts/index.html.erb deleted file mode 100644 index 1aa0aba..0000000 --- a/app/views/prompts/index.html.erb +++ /dev/null @@ -1,18 +0,0 @@ -

Listing prompts

- - - - - -<% @prompts.each do |prompt| %> - - - - - -<% end %> -
<%= link_to 'Show', prompt %><%= link_to 'Edit', edit_prompt_path(prompt) %><%= link_to 'Destroy', prompt, :confirm => 'Are you sure?', :method => :delete %>
- -
- -<%= link_to 'New prompt', new_prompt_path %> \ No newline at end of file diff --git a/app/views/prompts/new.html.erb b/app/views/prompts/new.html.erb deleted file mode 100644 index ff32bdb..0000000 --- a/app/views/prompts/new.html.erb +++ /dev/null @@ -1,11 +0,0 @@ -

New prompt

- -<% form_for(@prompt) do |f| %> - <%= f.error_messages %> - -

- <%= f.submit 'Create' %> -

-<% end %> - -<%= link_to 'Back', prompts_path %> \ No newline at end of file diff --git a/app/views/prompts/show.html.erb b/app/views/prompts/show.html.erb deleted file mode 100644 index 24309af..0000000 --- a/app/views/prompts/show.html.erb +++ /dev/null @@ -1,3 +0,0 @@ - -<%= link_to 'Edit', edit_prompt_path(@prompt) %> | -<%= link_to 'Back', prompts_path %> \ No newline at end of file diff --git a/spec/routing/items_routing_spec.rb b/spec/routing/items_routing_spec.rb deleted file mode 100644 index 2df4b2a..0000000 --- a/spec/routing/items_routing_spec.rb +++ /dev/null @@ -1,74 +0,0 @@ -require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') - -describe ItemsController do - before(:all) do - - @aoi_clone = Factory.create(:user) - @valid_attributes = { - :site => @aoi_clone, - :creator => @aoi_clone.default_visitor - - } - @q = Question.create!(@valid_attributes) - end - - describe "route generation" do - it "maps #index" do - route_for(:controller => "items", :action => "index", :question_id => @q.id.to_s ).should == "/questions/#{@q.id}/items" - end - - it "maps #new" do - route_for(:controller => "items", :action => "new", :question_id => @q.id.to_s).should == "/questions/#{@q.id}/items/new" - end - - it "maps #show" do - route_for(:controller => "items", :action => "show", :id => "1", :question_id => @q.id.to_s).should == "/questions/#{@q.id}/items/1" - end - - it "maps #edit" do - route_for(:controller => "items", :action => "edit", :id => "1", :question_id => @q.id.to_s).should == "/questions/#{@q.id}/items/1/edit" - end - - it "maps #create" do - route_for(:controller => "items", :action => "create", :question_id => @q.id.to_s).should == {:path => "/questions/#{@q.id}/items", :method => :post} - end - - it "maps #update" do - route_for(:controller => "items", :action => "update", :id => "1", :question_id => @q.id.to_s).should == {:path =>"/questions/#{@q.id}/items/1", :method => :put} - end - - it "maps #destroy" do - route_for(:controller => "items", :action => "destroy", :id => "1", :question_id => @q.id.to_s).should == {:path =>"/questions/#{@q.id}/items/1", :method => :delete} - end - end - - describe "route recognition" do - it "generates params for #index" do - params_from(:get, "/questions/#{@q.id}/items").should == {:controller => "items", :action => "index", :question_id => @q.id.to_s} - end - - it "generates params for #new" do - params_from(:get, "/questions/#{@q.id}/items/new").should == {:controller => "items", :action => "new", :question_id => @q.id.to_s} - end - - it "generates params for #create" do - params_from(:post, "/questions/#{@q.id}/items").should == {:controller => "items", :action => "create", :question_id => @q.id.to_s} - end - - it "generates params for #show" do - params_from(:get, "/questions/#{@q.id}/items/1").should == {:controller => "items", :action => "show", :id => "1", :question_id => @q.id.to_s} - end - - it "generates params for #edit" do - params_from(:get, "/questions/#{@q.id}/items/1/edit").should == {:controller => "items", :action => "edit", :id => "1", :question_id => @q.id.to_s} - end - - it "generates params for #update" do - params_from(:put, "/questions/#{@q.id}/items/1").should == {:controller => "items", :action => "update", :id => "1", :question_id => @q.id.to_s} - end - - it "generates params for #destroy" do - params_from(:delete, "/questions/#{@q.id}/items/1").should == {:controller => "items", :action => "destroy", :id => "1", :question_id => @q.id.to_s} - end - end -end diff --git a/spec/views/choices/edit.html.erb_spec.rb b/spec/views/choices/edit.html.erb_spec.rb deleted file mode 100644 index 2ca2caa..0000000 --- a/spec/views/choices/edit.html.erb_spec.rb +++ /dev/null @@ -1,18 +0,0 @@ -require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') - -describe "/choices/edit.html.erb" do - include ChoicesHelper - - before(:each) do - assigns[:choice] = @choice = stub_model(Choice, - :new_record? => false - ) - end - - it "renders the edit choice form" do - render - - response.should have_tag("form[action=#{choice_path(@choice)}][method=post]") do - end - end -end diff --git a/spec/views/choices/index.html.erb_spec.rb b/spec/views/choices/index.html.erb_spec.rb deleted file mode 100644 index 5c081ec..0000000 --- a/spec/views/choices/index.html.erb_spec.rb +++ /dev/null @@ -1,16 +0,0 @@ -require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') - -describe "/choices/index.html.erb" do - include ChoicesHelper - - before(:each) do - assigns[:choices] = [ - stub_model(Choice), - stub_model(Choice) - ] - end - - it "renders a list of choices" do - render - end -end diff --git a/spec/views/choices/new.html.erb_spec.rb b/spec/views/choices/new.html.erb_spec.rb deleted file mode 100644 index ffcc2b5..0000000 --- a/spec/views/choices/new.html.erb_spec.rb +++ /dev/null @@ -1,18 +0,0 @@ -require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') - -describe "/choices/new.html.erb" do - include ChoicesHelper - - before(:each) do - assigns[:choice] = stub_model(Choice, - :new_record? => true - ) - end - - it "renders new choice form" do - render - - response.should have_tag("form[action=?][method=post]", choices_path) do - end - end -end diff --git a/spec/views/choices/show.html.erb_spec.rb b/spec/views/choices/show.html.erb_spec.rb deleted file mode 100644 index 6799e28..0000000 --- a/spec/views/choices/show.html.erb_spec.rb +++ /dev/null @@ -1,12 +0,0 @@ -require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') - -describe "/choices/show.html.erb" do - include ChoicesHelper - before(:each) do - assigns[:choice] = @choice = stub_model(Choice) - end - - it "renders attributes in

" do - render - end -end diff --git a/spec/views/clicks/edit.html.erb_spec.rb b/spec/views/clicks/edit.html.erb_spec.rb deleted file mode 100644 index f79ca6c..0000000 --- a/spec/views/clicks/edit.html.erb_spec.rb +++ /dev/null @@ -1,24 +0,0 @@ -require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') - -describe "/clicks/edit.html.erb" do - include ClicksHelper - - before(:each) do - assigns[:click] = @click = stub_model(Click, - :new_record? => false, - :site_id => 1, - :visitor_id => 1, - :additional_info => "value for additional_info" - ) - end - - it "renders the edit click form" do - render - - response.should have_tag("form[action=#{click_path(@click)}][method=post]") do - with_tag('input#click_site_id[name=?]', "click[site_id]") - with_tag('input#click_visitor_id[name=?]', "click[visitor_id]") - with_tag('textarea#click_additional_info[name=?]', "click[additional_info]") - end - end -end diff --git a/spec/views/clicks/index.html.erb_spec.rb b/spec/views/clicks/index.html.erb_spec.rb deleted file mode 100644 index 9275a91..0000000 --- a/spec/views/clicks/index.html.erb_spec.rb +++ /dev/null @@ -1,27 +0,0 @@ -require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') - -describe "/clicks/index.html.erb" do - include ClicksHelper - - before(:each) do - assigns[:clicks] = [ - stub_model(Click, - :site_id => 1, - :visitor_id => 1, - :additional_info => "value for additional_info" - ), - stub_model(Click, - :site_id => 1, - :visitor_id => 1, - :additional_info => "value for additional_info" - ) - ] - end - - it "renders a list of clicks" do - render - response.should have_tag("tr>td", 1.to_s, 2) - response.should have_tag("tr>td", 1.to_s, 2) - response.should have_tag("tr>td", "value for additional_info".to_s, 2) - end -end diff --git a/spec/views/clicks/new.html.erb_spec.rb b/spec/views/clicks/new.html.erb_spec.rb deleted file mode 100644 index 541c41f..0000000 --- a/spec/views/clicks/new.html.erb_spec.rb +++ /dev/null @@ -1,24 +0,0 @@ -require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') - -describe "/clicks/new.html.erb" do - include ClicksHelper - - before(:each) do - assigns[:click] = stub_model(Click, - :new_record? => true, - :site_id => 1, - :visitor_id => 1, - :additional_info => "value for additional_info" - ) - end - - it "renders new click form" do - render - - response.should have_tag("form[action=?][method=post]", clicks_path) do - with_tag("input#click_site_id[name=?]", "click[site_id]") - with_tag("input#click_visitor_id[name=?]", "click[visitor_id]") - with_tag("textarea#click_additional_info[name=?]", "click[additional_info]") - end - end -end diff --git a/spec/views/clicks/show.html.erb_spec.rb b/spec/views/clicks/show.html.erb_spec.rb deleted file mode 100644 index 2e24028..0000000 --- a/spec/views/clicks/show.html.erb_spec.rb +++ /dev/null @@ -1,19 +0,0 @@ -require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') - -describe "/clicks/show.html.erb" do - include ClicksHelper - before(:each) do - assigns[:click] = @click = stub_model(Click, - :site_id => 1, - :visitor_id => 1, - :additional_info => "value for additional_info" - ) - end - - it "renders attributes in

" do - render - response.should have_text(/1/) - response.should have_text(/1/) - response.should have_text(/value\ for\ additional_info/) - end -end diff --git a/spec/views/items/edit.html.erb_spec.rb b/spec/views/items/edit.html.erb_spec.rb deleted file mode 100644 index 40e9ada..0000000 --- a/spec/views/items/edit.html.erb_spec.rb +++ /dev/null @@ -1,18 +0,0 @@ -require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') - -describe "/items/edit.html.erb" do - include ItemsHelper - - before(:each) do - assigns[:item] = @item = stub_model(Item, - :new_record? => false - ) - end - - it "renders the edit item form" do - render - - response.should have_tag("form[action=#{item_path(@item)}][method=post]") do - end - end -end diff --git a/spec/views/items/index.html.erb_spec.rb b/spec/views/items/index.html.erb_spec.rb deleted file mode 100644 index 28917ab..0000000 --- a/spec/views/items/index.html.erb_spec.rb +++ /dev/null @@ -1,16 +0,0 @@ -require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') - -describe "/items/index.html.erb" do - include ItemsHelper - - before(:each) do - assigns[:items] = [ - stub_model(Item), - stub_model(Item) - ] - end - - it "renders a list of items" do - render - end -end diff --git a/spec/views/items/new.html.erb_spec.rb b/spec/views/items/new.html.erb_spec.rb deleted file mode 100644 index 18718ae..0000000 --- a/spec/views/items/new.html.erb_spec.rb +++ /dev/null @@ -1,18 +0,0 @@ -require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') - -describe "/items/new.html.erb" do - include ItemsHelper - - before(:each) do - assigns[:item] = stub_model(Item, - :new_record? => true - ) - end - - it "renders new item form" do - render - - response.should have_tag("form[action=?][method=post]", items_path) do - end - end -end diff --git a/spec/views/items/show.html.erb_spec.rb b/spec/views/items/show.html.erb_spec.rb deleted file mode 100644 index 4af815a..0000000 --- a/spec/views/items/show.html.erb_spec.rb +++ /dev/null @@ -1,12 +0,0 @@ -require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') - -describe "/items/show.html.erb" do - include ItemsHelper - before(:each) do - assigns[:item] = @item = stub_model(Item) - end - - it "renders attributes in

" do - render - end -end diff --git a/spec/views/prompts/edit.html.erb_spec.rb b/spec/views/prompts/edit.html.erb_spec.rb deleted file mode 100644 index ade405c..0000000 --- a/spec/views/prompts/edit.html.erb_spec.rb +++ /dev/null @@ -1,18 +0,0 @@ -require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') - -describe "/prompts/edit.html.erb" do - include PromptsHelper - - before(:each) do - assigns[:prompt] = @prompt = stub_model(Prompt, - :new_record? => false - ) - end - - it "renders the edit prompt form" do - render - - response.should have_tag("form[action=#{prompt_path(@prompt)}][method=post]") do - end - end -end diff --git a/spec/views/prompts/index.html.erb_spec.rb b/spec/views/prompts/index.html.erb_spec.rb deleted file mode 100644 index 4dd8e4c..0000000 --- a/spec/views/prompts/index.html.erb_spec.rb +++ /dev/null @@ -1,16 +0,0 @@ -require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') - -describe "/prompts/index.html.erb" do - include PromptsHelper - - before(:each) do - assigns[:prompts] = [ - stub_model(Prompt), - stub_model(Prompt) - ] - end - - it "renders a list of prompts" do - render - end -end diff --git a/spec/views/prompts/new.html.erb_spec.rb b/spec/views/prompts/new.html.erb_spec.rb deleted file mode 100644 index 365f6a8..0000000 --- a/spec/views/prompts/new.html.erb_spec.rb +++ /dev/null @@ -1,18 +0,0 @@ -require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') - -describe "/prompts/new.html.erb" do - include PromptsHelper - - before(:each) do - assigns[:prompt] = stub_model(Prompt, - :new_record? => true - ) - end - - it "renders new prompt form" do - render - - response.should have_tag("form[action=?][method=post]", prompts_path) do - end - end -end diff --git a/spec/views/prompts/show.html.erb_spec.rb b/spec/views/prompts/show.html.erb_spec.rb deleted file mode 100644 index 36db01c..0000000 --- a/spec/views/prompts/show.html.erb_spec.rb +++ /dev/null @@ -1,12 +0,0 @@ -require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') - -describe "/prompts/show.html.erb" do - include PromptsHelper - before(:each) do - assigns[:prompt] = @prompt = stub_model(Prompt) - end - - it "renders attributes in

" do - render - end -end diff --git a/spec/views/questions/edit.html.erb_spec.rb b/spec/views/questions/edit.html.erb_spec.rb deleted file mode 100644 index 86feee0..0000000 --- a/spec/views/questions/edit.html.erb_spec.rb +++ /dev/null @@ -1,18 +0,0 @@ -require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') - -describe "/questions/edit.html.erb" do - include QuestionsHelper - - before(:each) do - assigns[:question] = @question = stub_model(Question, - :new_record? => false - ) - end - - it "renders the edit question form" do - render - - response.should have_tag("form[action=#{question_path(@question)}][method=post]") do - end - end -end diff --git a/spec/views/questions/index.html.erb_spec.rb b/spec/views/questions/index.html.erb_spec.rb deleted file mode 100644 index 0d9cef8..0000000 --- a/spec/views/questions/index.html.erb_spec.rb +++ /dev/null @@ -1,16 +0,0 @@ -require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') - -describe "/questions/index.html.erb" do - include QuestionsHelper - - before(:each) do - assigns[:questions] = [ - stub_model(Question), - stub_model(Question) - ] - end - - it "renders a list of questions" do - render - end -end diff --git a/spec/views/questions/new.html.erb_spec.rb b/spec/views/questions/new.html.erb_spec.rb deleted file mode 100644 index 18838ab..0000000 --- a/spec/views/questions/new.html.erb_spec.rb +++ /dev/null @@ -1,18 +0,0 @@ -require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') - -describe "/questions/new.html.erb" do - include QuestionsHelper - - before(:each) do - assigns[:question] = stub_model(Question, - :new_record? => true - ) - end - - it "renders new question form" do - render - - response.should have_tag("form[action=?][method=post]", questions_path) do - end - end -end diff --git a/spec/views/questions/show.html.erb_spec.rb b/spec/views/questions/show.html.erb_spec.rb deleted file mode 100644 index 004ec96..0000000 --- a/spec/views/questions/show.html.erb_spec.rb +++ /dev/null @@ -1,12 +0,0 @@ -require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') - -describe "/questions/show.html.erb" do - include QuestionsHelper - before(:each) do - assigns[:question] = @question = stub_model(Question) - end - - it "renders attributes in

" do - render - end -end -- libgit2 0.21.2