Commit 97269b56
Changed files (8)
app
views
layouts
spec
views
app/views/layouts/application.html.erb
@@ -72,7 +72,7 @@
<!-- end left menu -->
<!-- start search tag -->
<div id="search_box">
- <% form_tag(search_index_path, :method => "get", :name => "search") do %>
+ <%= form_tag(search_index_path, :method => "get", :name => "search") do %>
<div id="search_box_inner">
<input name="q" id="search_query" type="text" style="" value=" SEARCH" onfocus="if(this.value==' SEARCH')this.value='';" />
<%# <%= text_field_tag(:q) %>
spec/views/creations/edit.html.erb_spec.rb
@@ -1,20 +0,0 @@
-require 'spec_helper'
-
-describe "creations/edit.html.erb" do
- before(:each) do
- @creation = assign(:creation, stub_model(Creation,
- :name => "MyString",
- :story => "MyText"
- ))
- end
-
- it "renders the edit creation form" do
- render
-
- # Run the generator again with the --webrat flag if you want to use webrat matchers
- assert_select "form", :action => creations_path(@creation), :method => "post" do
- assert_select "input#creation_name", :name => "creation[name]"
- assert_select "textarea#creation_story", :name => "creation[story]"
- end
- end
-end
spec/views/creations/index.html.erb_spec.rb
@@ -1,24 +0,0 @@
-require 'spec_helper'
-
-describe "creations/index.html.erb" do
- before(:each) do
- assign(:creations, [
- stub_model(Creation,
- :name => "Name",
- :story => "MyText"
- ),
- stub_model(Creation,
- :name => "Name",
- :story => "MyText"
- )
- ])
- end
-
- it "renders a list of creations" do
- render
- # Run the generator again with the --webrat flag if you want to use webrat matchers
- assert_select "div>h2", :text => "Name".to_s, :count => 2
- # Run the generator again with the --webrat flag if you want to use webrat matchers
- assert_select "div>p", :text => "MyText... more".to_s, :count => 2
- end
-end
spec/views/creations/new.html.erb_spec.rb
@@ -1,20 +0,0 @@
-require 'spec_helper'
-
-describe "creations/new.html.erb" do
- before(:each) do
- assign(:creation, stub_model(Creation,
- :name => "MyString",
- :story => "MyText"
- ).as_new_record)
- end
-
- it "renders new creation form" do
- render
-
- # Run the generator again with the --webrat flag if you want to use webrat matchers
- assert_select "form", :action => creations_path, :method => "post" do
- assert_select "input#creation_name", :name => "creation[name]"
- assert_select "textarea#creation_story", :name => "creation[story]"
- end
- end
-end
spec/views/creations/show.html.erb_spec.rb
@@ -1,20 +0,0 @@
-require 'spec_helper'
-
-describe "creations/show.html.erb" do
- include Devise::TestHelpers
-
- before(:each) do
- @creation = assign(:creation, stub_model(Creation,
- :name => "Name",
- :story => "MyText"
- ))
- end
-
- it "renders attributes in <p>" do
- render
- # Run the generator again with the --webrat flag if you want to use webrat matchers
- rendered.should match(/Name/)
- # Run the generator again with the --webrat flag if you want to use webrat matchers
- rendered.should match(/MyText/)
- end
-end
spec/views/profiles/index.html.erb_spec.rb
@@ -1,5 +0,0 @@
-require 'spec_helper'
-
-describe "profiles/index.html.erb" do
- pending "add some examples to (or delete) #{__FILE__}"
-end
spec/views/profiles/show.html.erb_spec.rb
@@ -1,5 +0,0 @@
-require 'spec_helper'
-
-describe "profiles/show.html.erb" do
- pending "add some examples to (or delete) #{__FILE__}"
-end
spec/views/search/index.html.erb_spec.rb
@@ -1,5 +0,0 @@
-require 'spec_helper'
-
-describe "search/index.html.erb" do
- pending "add some examples to (or delete) #{__FILE__}"
-end