spec/flipper/dsl_spec.rb in flipper-0.27.1 vs spec/flipper/dsl_spec.rb in flipper-0.28.0

- old
+ new

@@ -147,15 +147,15 @@ end end end describe '#actor' do - context 'for a thing' do + context 'for an actor' do it 'returns actor instance' do - thing = Flipper::Actor.new(33) - actor = subject.actor(thing) - expect(actor).to be_instance_of(Flipper::Types::Actor) - expect(actor.value).to eq('33') + actor = Flipper::Actor.new(33) + flipper_actor = subject.actor(actor) + expect(flipper_actor).to be_instance_of(Flipper::Types::Actor) + expect(flipper_actor.value).to eq('33') end end context 'for nil' do it 'raises argument error' do