@@ -42,39 +42,39 @@ def self._local_prefixes
4242
4343
4444 describe "::controller_path" do
45- it { ::BassistCell . new ( @controller ) . class . controller_path . must_equal "bassist" }
46- it { SingerCell . new ( @controller ) . class . controller_path . must_equal "prefixes_test/singer" }
45+ it { _ ( ::BassistCell . new ( @controller ) . class . controller_path ) . must_equal "bassist" }
46+ it { _ ( SingerCell . new ( @controller ) . class . controller_path ) . must_equal "prefixes_test/singer" }
4747 end
4848
4949 describe "#_prefixes" do
50- it { ::BassistCell . new ( @controller ) . _prefixes . must_equal [ "test/fixtures/bassist" ] }
51- it { ::BassistCell ::FenderCell . new ( @controller ) . _prefixes . must_equal [ "app/cells/bassist_cell/fender" ] }
52- it { ::BassistCell ::IbanezCell . new ( @controller ) . _prefixes . must_equal [ "test/fixtures/bassist_cell/ibanez" , "test/fixtures/bassist" ] }
50+ it { _ ( ::BassistCell . new ( @controller ) . _prefixes ) . must_equal [ "test/fixtures/bassist" ] }
51+ it { _ ( ::BassistCell ::FenderCell . new ( @controller ) . _prefixes ) . must_equal [ "app/cells/bassist_cell/fender" ] }
52+ it { _ ( ::BassistCell ::IbanezCell . new ( @controller ) . _prefixes ) . must_equal [ "test/fixtures/bassist_cell/ibanez" , "test/fixtures/bassist" ] }
5353
54- it { SingerCell . new ( @controller ) . _prefixes . must_equal [ "app/cells/prefixes_test/singer" ] }
55- it { BackgroundVocalsCell . new ( @controller ) . _prefixes . must_equal [ "app/cells/prefixes_test/background_vocals" , "app/cells/prefixes_test/singer" ] }
56- it { ChorusCell . new ( @controller ) . _prefixes . must_equal [ "app/cells/prefixes_test/chorus" , "app/cells/prefixes_test/background_vocals" , "app/cells/prefixes_test/singer" ] }
54+ it { _ ( SingerCell . new ( @controller ) . _prefixes ) . must_equal [ "app/cells/prefixes_test/singer" ] }
55+ it { _ ( BackgroundVocalsCell . new ( @controller ) . _prefixes ) . must_equal [ "app/cells/prefixes_test/background_vocals" , "app/cells/prefixes_test/singer" ] }
56+ it { _ ( ChorusCell . new ( @controller ) . _prefixes ) . must_equal [ "app/cells/prefixes_test/chorus" , "app/cells/prefixes_test/background_vocals" , "app/cells/prefixes_test/singer" ] }
5757
58- it { GuitaristCell . new ( @controller ) . _prefixes . must_equal [ "stringer" , "app/cells/prefixes_test/singer" ] }
59- it { BassistCell . new ( @controller ) . _prefixes . must_equal [ "app/cells/prefixes_test/bassist" , "basser" , "app/cells/prefixes_test/singer" ] }
58+ it { _ ( GuitaristCell . new ( @controller ) . _prefixes ) . must_equal [ "stringer" , "app/cells/prefixes_test/singer" ] }
59+ it { _ ( BassistCell . new ( @controller ) . _prefixes ) . must_equal [ "app/cells/prefixes_test/bassist" , "basser" , "app/cells/prefixes_test/singer" ] }
6060 # it { DrummerCell.new(@controller)._prefixes.must_equal ["drummer", "stringer", "prefixes_test/singer"] }
6161
6262 # multiple view_paths.
63- it { EngineCell . prefixes . must_equal [ "app/cells/engine" , "/var/engine/app/cells/engine" ] }
63+ it { _ ( EngineCell . prefixes ) . must_equal [ "app/cells/engine" , "/var/engine/app/cells/engine" ] }
6464 it do
65- InheritingFromEngineCell . prefixes . must_equal [
65+ _ ( InheritingFromEngineCell . prefixes ) . must_equal [
6666 "app/cells/inheriting_from_engine" , "/var/engine/app/cells/inheriting_from_engine" ,
6767 "app/cells/engine" , "/var/engine/app/cells/engine" ]
6868 end
6969
7070 # ::_prefixes is cached.
7171 it do
72- WannabeCell . prefixes . must_equal [ "test/fixtures/wannabe" , "test/fixtures/bassist_cell/ibanez" , "test/fixtures/bassist" ]
72+ _ ( WannabeCell . prefixes ) . must_equal [ "test/fixtures/wannabe" , "test/fixtures/bassist_cell/ibanez" , "test/fixtures/bassist" ]
7373 WannabeCell . instance_eval { def _local_prefixes ; [ "more" ] end }
7474 # _prefixes is cached.
75- WannabeCell . prefixes . must_equal [ "test/fixtures/wannabe" , "test/fixtures/bassist_cell/ibanez" , "test/fixtures/bassist" ]
75+ _ ( WannabeCell . prefixes ) . must_equal [ "test/fixtures/wannabe" , "test/fixtures/bassist_cell/ibanez" , "test/fixtures/bassist" ]
7676 # superclasses don't get disturbed.
77- ::BassistCell . prefixes . must_equal [ "test/fixtures/bassist" ]
77+ _ ( ::BassistCell . prefixes ) . must_equal [ "test/fixtures/bassist" ]
7878 end
7979 end
8080
@@ -96,12 +96,12 @@ def play
9696 class FunkerCell < SlapperCell
9797 end
9898
99- it { SlapperCell . new ( nil ) . _prefixes . must_equal [ "test/fixtures/inherit_views_test/slapper" , "test/fixtures/bassist" ] }
100- it { FunkerCell . new ( nil ) . _prefixes . must_equal [ "test/fixtures/inherit_views_test/funker" , "test/fixtures/inherit_views_test/slapper" , "test/fixtures/bassist" ] }
99+ it { _ ( SlapperCell . new ( nil ) . _prefixes ) . must_equal [ "test/fixtures/inherit_views_test/slapper" , "test/fixtures/bassist" ] }
100+ it { _ ( FunkerCell . new ( nil ) . _prefixes ) . must_equal [ "test/fixtures/inherit_views_test/funker" , "test/fixtures/inherit_views_test/slapper" , "test/fixtures/bassist" ] }
101101
102102 # test if normal cells inherit views.
103- it { cell ( 'inherit_views_test/slapper' ) . play . must_equal 'Doo' }
104- it { cell ( 'inherit_views_test/funker' ) . play . must_equal 'Doo' }
103+ it { _ ( cell ( 'inherit_views_test/slapper' ) . play ) . must_equal 'Doo' }
104+ it { _ ( cell ( 'inherit_views_test/funker' ) . play ) . must_equal 'Doo' }
105105
106106
107107 # TapperCell
@@ -122,12 +122,12 @@ class PopperCell < TapperCell
122122 end
123123
124124 # Tapper renders its play
125- it { cell ( 'inherit_views_test/tapper' ) . call ( :play ) . must_equal 'Dooom!' }
125+ it { _ ( cell ( 'inherit_views_test/tapper' ) . call ( :play ) ) . must_equal 'Dooom!' }
126126 # Tapper renders its tap
127- it { cell ( 'inherit_views_test/tapper' ) . call ( :tap ) . must_equal 'Tap tap tap!' }
127+ it { _ ( cell ( 'inherit_views_test/tapper' ) . call ( :tap ) ) . must_equal 'Tap tap tap!' }
128128
129129 # Popper renders Tapper's play
130- it { cell ( 'inherit_views_test/popper' ) . call ( :play ) . must_equal 'Dooom!' }
130+ it { _ ( cell ( 'inherit_views_test/popper' ) . call ( :play ) ) . must_equal 'Dooom!' }
131131 # Popper renders its tap
132- it { cell ( 'inherit_views_test/popper' ) . call ( :tap ) . must_equal "TTttttap I'm not good enough!" }
132+ it { _ ( cell ( 'inherit_views_test/popper' ) . call ( :tap ) ) . must_equal "TTttttap I'm not good enough!" }
133133end
0 commit comments