Navigation Menu

Skip to content

Commit

Permalink
index page
Browse files Browse the repository at this point in the history
  • Loading branch information
glv committed Apr 21, 2010
1 parent 5646e11 commit f990aca
Show file tree
Hide file tree
Showing 11 changed files with 43 additions and 319 deletions.
1 change: 1 addition & 0 deletions tdd_samples/games/.gitignore
@@ -0,0 +1 @@
log
5 changes: 5 additions & 0 deletions tdd_samples/games/app/controllers/welcome_controller.rb
@@ -0,0 +1,5 @@
class WelcomeController < ApplicationController
def index
end

end
2 changes: 2 additions & 0 deletions tdd_samples/games/app/helpers/welcome_helper.rb
@@ -0,0 +1,2 @@
module WelcomeHelper
end
7 changes: 7 additions & 0 deletions tdd_samples/games/app/views/welcome/index.html.erb
@@ -0,0 +1,7 @@
<h1>Welcome to Board Game Reviews!</h1>
<p>Where do you want to go?</p>
<ul>
<li><%= link_to 'Users', :controller => 'users' %></li>
<li><%= link_to 'Games', :controller => 'games' %></li>
<li><%= link_to 'Reviews', :controller => 'reviews' %></li>
</ul>
Binary file removed tdd_samples/games/db/development.sqlite3
Binary file not shown.
319 changes: 0 additions & 319 deletions tdd_samples/games/log/development.log

This file was deleted.

Empty file.
Empty file removed tdd_samples/games/log/server.log
Empty file.
Empty file removed tdd_samples/games/log/test.log
Empty file.
17 changes: 17 additions & 0 deletions tdd_samples/games/spec/controllers/welcome_controller_spec.rb
@@ -0,0 +1,17 @@
require 'spec_helper'

describe WelcomeController do

#Delete these examples and add some real ones
it "should use WelcomeController" do
controller.should be_an_instance_of(WelcomeController)
end


describe "GET 'index'" do
it "should be successful" do
get 'index'
response.should be_success
end
end
end
11 changes: 11 additions & 0 deletions tdd_samples/games/spec/helpers/welcome_helper_spec.rb
@@ -0,0 +1,11 @@
require 'spec_helper'

describe WelcomeHelper do

#Delete this example and add some real ones or delete this file
it "should be included in the object returned by #helper" do
included_modules = (class << helper; self; end).send :included_modules
included_modules.should include(WelcomeHelper)
end

end

0 comments on commit f990aca

Please sign in to comment.