Skip to content

Commit 0f4d661

Browse files
committed
Rubocop
1 parent a29287e commit 0f4d661

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

spec/integration/plugin_helper_spec.rb renamed to spec/code_teams/plugin_helper_integration_spec.rb

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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

0 commit comments

Comments
 (0)