`super` inside nested `subject`
Description
It'd be nice to have an ability to call super
inside nested subject
.
Code
require "./spec_helper"
Spectator.describe Foo do
subject { described_class.new }
describe "#bar" do
subject { super.bar }
it { is_expected.to be true }
end
end
Current output
In spec/foo.cr:7:13
7 | subject { super.bar }
^----
Error: undefined method '__temp_37' for Colorize::ObjectExtensions
Work-around
require "./spec_helper"
Spectator.describe Foo do
subject(foo) { described_class.new }
describe "#bar" do
subject { foo.bar }
it { is_expected.to be true }
end
end
Edited by Alexander Popov