forked from stuarthalloway/relevance-ruby-samples
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
43 additions
and
319 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class WelcomeController < ApplicationController | ||
def index | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
module WelcomeHelper | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 not shown.
This file was deleted.
Oops, something went wrong.
Empty file.
Empty file.
Empty file.
17 changes: 17 additions & 0 deletions
17
tdd_samples/games/spec/controllers/welcome_controller_spec.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |