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
7 changed files
with
41 additions
and
276 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,4 @@ | ||
class RootController < 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
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,14 @@ | ||
%h1 Welcome | ||
|
||
%p | ||
The purpose of this application is to test out the integration with the | ||
SagePay API of our sage_pay gem. It is in no way affiliated with Sage, it | ||
doesn't have their blessing and it certainly hasn't been funded by them | ||
(though that would be nice!). | ||
|
||
%p | ||
As functionality is incorporated to the app, it will be linked to, where | ||
possible, from here. So far, there is: | ||
|
||
%ul | ||
%li= link_to "Currency management", currencies_path |
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
ActionController::Routing::Routes.draw do |map| | ||
map.resources :currencies | ||
|
||
map.root :controller => 'root' | ||
end |
Binary file not shown.
This file was deleted.
Oops, something went wrong.
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,19 @@ | ||
require 'spec_helper' | ||
|
||
describe RootController do | ||
describe "responding to GET index" do | ||
def do_get | ||
get :index | ||
end | ||
|
||
it "should be successful" do | ||
do_get | ||
response.should be_success | ||
end | ||
|
||
it "should render the index template" do | ||
do_get | ||
response.should render_template('index') | ||
end | ||
end | ||
end |