spec/unit/callable/call_spec.rb in finite_machine-0.10.0 vs spec/unit/callable/call_spec.rb in finite_machine-0.10.1

- old
+ new

@@ -1,13 +1,13 @@ # encoding: utf-8 require 'spec_helper' -describe FiniteMachine::Callable, '#call' do +RSpec.describe FiniteMachine::Callable, '#call' do before(:each) { - Car = Class.new do + stub_const("Car", Class.new do attr_reader :result def initialize @engine_on = false end @@ -29,10 +29,10 @@ def engine_on? @result = 'engine_on' !!@engine_on end - end + end) } let(:called) { [] } let(:target) { Car.new }