1
0
Fork 0
mirror of https://github.com/aasm/aasm synced 2023-03-27 23:22:41 -04:00
aasm/spec/unit/guard_without_from_specified_spec.rb
2017-04-27 15:52:54 +05:30

10 lines
298 B
Ruby

require 'spec_helper'
describe "transitions without from specified" do
let(:guardian) { GuardianWithoutFromSpecified.new }
it "allows the transitions if guard succeeds" do
expect { guardian.use_guards_where_the_first_fails! }.to_not raise_error
expect(guardian).to be_gamma
end
end