Skip to content

Commit

Permalink
Test solution accessor deprection with a different method.
Browse files Browse the repository at this point in the history
  • Loading branch information
gkellogg committed Mar 4, 2021
1 parent 8dabc51 commit ee0687c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/query_solution_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
specify {expect(subject["$$e"]).to eq 5}

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

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

expect do
expect(subject[:then]).to eq 'foo'
expect(subject[:tap]).to eq 'foo'
end.not_to write.to(:error)
end
end
Expand Down

0 comments on commit ee0687c

Please sign in to comment.