forked from pat/riddle
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed hacky class << self to def self.settings in all classes from …
…Riddle::Configuration module
- Loading branch information
Showing
10 changed files
with
94 additions
and
83 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
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
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,5 +1,28 @@ | ||
require 'spec_helper' | ||
|
||
describe Riddle::Configuration do | ||
# | ||
describe Riddle::Configuration::Index do | ||
describe '#settings' do | ||
it 'should return array with all settings of index' do | ||
Riddle::Configuration::Index.settings.should_not be_empty | ||
end | ||
|
||
it 'should return array which contains a docinfo' do | ||
Riddle::Configuration::Index.settings.should be_include :docinfo | ||
end | ||
end | ||
end | ||
|
||
describe 'class inherited from Riddle::Configuration::Index' do | ||
before :all do | ||
class TestIndex < Riddle::Configuration::Index; end | ||
end | ||
|
||
describe '#settings' do | ||
it 'should has same settings as Riddle::Configuration::Index' do | ||
TestIndex.settings.should == Riddle::Configuration::Index.settings | ||
end | ||
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