mirror of
https://github.com/aasm/aasm
synced 2023-03-27 23:22:41 -04:00
![pocari](/assets/img/avatar_default.png)
* Reproduction case added * Allow keyword arguments to be passed to event before, etc. in Ruby 2.7.1 and above. * refactoring
10 lines
336 B
Ruby
10 lines
336 B
Ruby
require 'spec_helper'
|
|
|
|
describe EventWithKeywordArguments do
|
|
let(:example) { EventWithKeywordArguments.new }
|
|
describe 'enable keyword arguments' do
|
|
it 'should be executed correctly that method registered by "before hooks" for events with keyword arguments.' do
|
|
expect(example.close(key: 1)).to be_truthy
|
|
end
|
|
end
|
|
end
|