Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce Lotus::Controller.load! as loading framework entry point
- Loading branch information
Showing
8 changed files
with
58 additions
and
7 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 |
---|---|---|
|
@@ -75,7 +75,5 @@ def self.included(base) | |
# @see Lotus::Action::Cache | ||
def finish | ||
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
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,31 @@ | ||
require 'test_helper' | ||
|
||
describe 'Framework freeze' do | ||
describe 'Lotus::Controller' do | ||
before do | ||
Lotus::Controller.load! | ||
end | ||
|
||
it 'freezes framework configuration' do | ||
Lotus::Controller.configuration.must_be :frozen? | ||
end | ||
|
||
# it 'freezes action configuration' do | ||
# CallAction.configuration.must_be :frozen? | ||
# end | ||
end | ||
|
||
describe 'duplicated framework' do | ||
before do | ||
MusicPlayer::Controller.load! | ||
end | ||
|
||
it 'freezes framework configuration' do | ||
MusicPlayer::Controller.configuration.must_be :frozen? | ||
end | ||
|
||
# it 'freezes action configuration' do | ||
# MusicPlayer::Controllers::Artists::Index.configuration.must_be :frozen? | ||
# 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