Skip to content

Commit 4060716

Browse files
committed
Add backward-compatibility integration spec
1 parent d49e832 commit 4060716

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

spec/integration/plugin_helper_spec.rb

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,16 @@ def other_method2
7575
end
7676
end
7777
end
78+
79+
specify 'backwards compatibility' do
80+
test_plugin_class = Class.new(described_class) do
81+
def test_plugin
82+
Data.define(:foo).new('foo')
83+
end
84+
end
85+
86+
stub_const('TestPlugin', test_plugin_class)
87+
88+
expect(TestPlugin.for(team).test_plugin.foo).to eq('foo')
89+
end
7890
end

0 commit comments

Comments
 (0)