~matteo-collina/+junk/gipieffe

« back to all changes in this revision

Viewing changes to spec/views/projects/index.html.erb_spec.rb

  • Committer: Matteo Collina
  • Date: 2008-11-01 09:48:01 UTC
  • Revision ID: matteo.collina@gmail.com-20081101094801-1mp5uz0p2cww6ke3
 * Putted the project scaffold inside the admin namespace.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')
2
2
 
3
 
describe "/projects/index.html.erb" do
4
 
  include ProjectsHelper
 
3
describe "/admin/projects/index.html.erb" do
 
4
  include Admin::ProjectsHelper
5
5
  
6
6
  before(:each) do
7
7
    assigns[:projects] = [
19
19
  end
20
20
 
21
21
  it "should render list of projects" do
22
 
    render "/projects/index.html.erb"
 
22
    render "/admin/projects/index.html.erb"
23
23
    response.should have_tag("tr>td", "value for name", 2)
24
24
    response.should have_tag("tr>td", "value for description", 2)
25
25
    response.should have_tag("tr>td", "1", 2)