-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Register non ActiveRecord::Base classes correctly.
- Loading branch information
Anton Lindqvist
committed
Mar 19, 2013
1 parent
a759403
commit 6693c86
Showing
3 changed files
with
19 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
class Library | ||
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,16 @@ | ||
require 'test_helper_dummy' | ||
require_relative '../dummy_app/lib/library' | ||
|
||
class LibraryTest < ActiveSupport::TestCase | ||
it 'reflects' do | ||
describing_class.must_equal LibraryTest | ||
described_class.must_equal Library | ||
end | ||
end | ||
|
||
describe Library do | ||
it 'reflects' do | ||
described_class.must_equal Library | ||
self.class.described_class.must_equal Library | ||
end | ||
end |