This repository has been archived by the owner on Mar 26, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Raise error if search for missing site
git-svn-id: https://svn.trike.com.au/code/radiant/extensions/multi_site_hacks@74 dec4ba91-d232-0410-a499-b0f1e7490611
- Loading branch information
matt
committed
Feb 19, 2008
1 parent
bb075fb
commit 24e5a3b
Showing
5 changed files
with
32 additions
and
2 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,7 @@ | ||
class Page < ActiveRecord::Base | ||
|
||
class MissingSiteError < StandardError | ||
def initialize(message = "Missing Site - I can't find the Site your search implies"); super 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
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,19 @@ | ||
require 'test/unit' | ||
# # Load the environment | ||
unless defined? RADIANT_ROOT | ||
ENV["RAILS_ENV"] = "test" | ||
require "#{File.expand_path(File.dirname(__FILE__) + "/../../../../")}/config/environment" | ||
end | ||
require "#{RADIANT_ROOT}/test/test_helper" | ||
|
||
class Test::Unit::TestCase | ||
|
||
# Include a helper to make testing Radius tags easier | ||
test_helper :extension_tags | ||
|
||
# Add the fixture directory to the fixture path | ||
self.fixture_path << File.dirname(__FILE__) + "/fixtures" | ||
|
||
# Add more helper methods to be used by all extension tests here... | ||
|
||
end |