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

11 lines
298 B
Ruby
Raw Normal View History

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