File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed
Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change 1- RSpec . describe CodeTeams ::Plugin , 'helper integration' do
1+ RSpec . describe CodeTeams ::Plugin do
22 before do
33 CodeTeams . bust_caches!
44 write_team_yml ( extra_data : { 'foo' => 'foo' , 'bar' => 'bar' } )
@@ -28,23 +28,23 @@ def test_plugin
2828 write_team_yml ( extra_data : { 'foo' => { 'bar' => 'bar' } } )
2929 expect ( team . test_plugin . foo [ 'bar' ] ) . to eq ( 'bar' )
3030 end
31+ end
3132
32- context 'when the data accessor name is overridden' do
33- before do
34- test_plugin_class = Class . new ( described_class ) do
35- data_accessor_name 'foo'
33+ context 'when the data accessor name is overridden' do
34+ before do
35+ test_plugin_class = Class . new ( described_class ) do
36+ data_accessor_name 'foo'
3637
37- def foo
38- Data . define ( :bar ) . new ( 'bar' )
39- end
38+ def foo
39+ Data . define ( :bar ) . new ( 'bar' )
4040 end
41-
42- stub_const ( 'TestPlugin' , test_plugin_class )
4341 end
4442
45- it 'adds the data accessor name to the team' do
46- expect ( team . foo . bar ) . to eq ( 'bar' )
47- end
43+ stub_const ( 'TestPlugin' , test_plugin_class )
44+ end
45+
46+ it 'adds the data accessor name to the team' do
47+ expect ( team . foo . bar ) . to eq ( 'bar' )
4848 end
4949 end
5050 end
You can’t perform that action at this time.
0 commit comments