rspec/rspec-expectations — Issue #95: Testing aliases
Author: ProGNOMmers
Created: 2011-11-07 10:40:15+00:00
State: open

Hello,

it would be great to test if a method is an alias of another; someting like this:

describe Array do
describe '#[]' do
it 'is an alias of #fetch' do
...
end
end
end

But I don't know if it is possible; I don't even know if you can know if a method is an alias of another :-/