Skip to content

Commit

Permalink
Remove local reference in spec
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswoodrich committed Oct 22, 2015
1 parent 05c7283 commit 23927f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/unit/callback_multiple_spec.rb
Expand Up @@ -153,7 +153,7 @@ def safe_error(callback = nil)
error = safe_error(callback) { callback.close! }

expect(error.class).to eq AASM::InvalidTransition
expect(error.message).to eq "Event 'close' cannot transition from 'open'. Failed callback(s): [\"/Users/woodrich/Dropbox/personal/aasm/spec/models/callbacks/guard_within_block_multiple.rb#30\"]."
expect(error.message[0..63]).to eq "Event 'close' cannot transition from 'open'. Failed callback(s):"
end
end

Expand Down

0 comments on commit 23927f1

Please sign in to comment.