Skip to content

Commit ee0687c

Browse files
committed
Test solution accessor deprection with a different method.
1 parent 8dabc51 commit ee0687c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

spec/query_solution_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@
1919
specify {expect(subject["$$e"]).to eq 5}
2020

2121
context "with accessor overriding instance method" do
22-
subject {described_class.new(then: 'foo')}
22+
subject {described_class.new(tap: 'foo')}
2323

2424
it "notes deprecation when accessor is an overriddedn instance method" do
2525
expect do
26-
expect(subject.then).to eq 'foo'
26+
expect(subject.tap).to eq 'foo'
2727
end.to write('[DEPRECATION]').to(:error)
2828

2929
expect do
30-
expect(subject[:then]).to eq 'foo'
30+
expect(subject[:tap]).to eq 'foo'
3131
end.not_to write.to(:error)
3232
end
3333
end

0 commit comments

Comments
 (0)