-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from agoragames/updated_functional_tests
Updated functional tests, fix for Mongoid module, version bump
- Loading branch information
Showing
19 changed files
with
94 additions
and
19 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
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
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 |
---|---|---|
|
@@ -19,8 +19,8 @@ Jeweler::Tasks.new do |gem| | |
gem.license = "MIT" | ||
gem.summary = %Q{Errship is a Rails 3.1 engine for rendering error pages inside your layout.} | ||
gem.description = %Q{Errship is a Rails 3.1 engine for rendering error pages inside your layout. It supports i18n, custom exceptions, and Airbrake (Hoptoad) error tracking.} | ||
gem.email = "[email protected]" | ||
gem.authors = ["Logan Koester"] | ||
gem.email = ["[email protected]", "[email protected]", "[email protected]"] | ||
gem.authors = ["Logan Koester", "Matthew Wilson", "David Czarnecki"] | ||
gem.files = Dir["{lib}/**/*", "{app}/**/*", "{config}/**/*", "{public}/**/*"] | ||
# dependencies defined in Gemfile | ||
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 |
---|---|---|
@@ -1 +1 @@ | ||
2.0.0 | ||
2.0.1 |
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 |
---|---|---|
|
@@ -5,13 +5,13 @@ | |
|
||
Gem::Specification.new do |s| | ||
s.name = %q{errship} | ||
s.version = "2.0.0" | ||
s.version = "2.0.1" | ||
|
||
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= | ||
s.authors = ["Logan Koester"] | ||
s.authors = [%q{Logan Koester}, %q{Matthew Wilson}, %q{David Czarnecki}] | ||
s.date = %q{2011-09-02} | ||
s.description = %q{Errship is a Rails 3.1 engine for rendering error pages inside your layout. It supports i18n, custom exceptions, and Airbrake (Hoptoad) error tracking.} | ||
s.email = %q{[email protected]} | ||
s.email = [%q{[email protected]}, %q{[email protected]}, %q{[email protected]}] | ||
s.extra_rdoc_files = [ | ||
"LICENSE.txt", | ||
"README.rdoc" | ||
|
@@ -28,9 +28,9 @@ Gem::Specification.new do |s| | |
"lib/rescuers/mongoid.rb" | ||
] | ||
s.homepage = %q{http://github.com/logankoester/errship} | ||
s.licenses = ["MIT"] | ||
s.require_paths = ["lib"] | ||
s.rubygems_version = %q{1.6.2} | ||
s.licenses = [%q{MIT}] | ||
s.require_paths = [%q{lib}] | ||
s.rubygems_version = %q{1.8.6} | ||
s.summary = %q{Errship is a Rails 3.1 engine for rendering error pages inside your layout.} | ||
|
||
if s.respond_to? :specification_version then | ||
|
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
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,7 @@ | ||
class HumansController < ApplicationController | ||
include Errship::MongoMapper::Rescuers | ||
|
||
def index | ||
raise MongoMapper::DocumentNotFound | ||
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,7 @@ | ||
class ZombiesController < ApplicationController | ||
include Errship::Mongoid::Rescuers | ||
|
||
def index | ||
raise Mongoid::Errors::DocumentNotFound | ||
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 @@ | ||
class User < ActiveRecord::Base | ||
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,10 @@ | ||
defaults: &defaults | ||
host: localhost | ||
|
||
development: | ||
<<: *defaults | ||
database: mongoid_sandbox_development | ||
|
||
test: | ||
<<: *defaults | ||
database: mongoid_sandbox_test |
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,4 +1,6 @@ | ||
Sandbox::Application.routes.draw do | ||
match '/try_flashback', :controller => 'application', :action => 'try_flashback' | ||
match '/brains', :controller => 'brains', :action => 'index' | ||
match '/zombies', :controller => 'zombies', :action => 'index' | ||
match '/humans', :controller => 'humans', :action => 'index' | ||
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 |
---|---|---|
@@ -1,7 +1,9 @@ | ||
require 'test_helper' | ||
|
||
class BrainsControllerTest < ActionController::TestCase | ||
# test "the truth" do | ||
# assert true | ||
# end | ||
test "/error routes to errship's standard error page with ActiveRecord::RecordNotFound" do | ||
Errship::Rescuers.expects(:render_404_error).with(ActiveRecord::RecordNotFound, anything) | ||
|
||
get :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,9 @@ | ||
require 'test_helper' | ||
|
||
class HumansControllerTest < ActionController::TestCase | ||
test "/error routes to errship's standard error page with MongoMapper::DocumentNotFound exception" do | ||
Errship::Rescuers.expects(:render_404_error).with(MongoMapper::DocumentNotFound, anything) | ||
|
||
get :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,9 @@ | ||
require 'test_helper' | ||
|
||
class ZombiesControllerTest < ActionController::TestCase | ||
test "/error routes to errship's standard error page with Mongoid::Errors::DocumentNotFound" do | ||
Errship::Rescuers.expects(:render_404_error).with(Mongoid::Errors::DocumentNotFound, anything) | ||
|
||
get :index | ||
end | ||
end |
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