spec/balboa/capybara_interactor_spec.rb in balboa-0.1.4 vs spec/balboa/capybara_interactor_spec.rb in balboa-0.1.5

- old
+ new

@@ -26,19 +26,16 @@ end it 'responds to last but raises if no command provided' do interactor = described_class.new - last = double('cmd', execute: nil) login = double('login', execute: nil) interactor.add_command('login', login) error = Balboa::Interactor::CapybaraInteractor::CommandNotFound - expect { - interactor.last - }.to raise_error error + expect { interactor.last }.to raise_error error end it 'holds the options so commands can use it' do interactor = described_class.new(a: 1, b: 2) @@ -46,18 +43,15 @@ end it 'responds to punch but raises if no command provided' do interactor = described_class.new - punch = double('cmd', execute: nil) login = double('login', execute: nil) interactor.add_command('login', login) error = Balboa::Interactor::CapybaraInteractor::CommandNotFound - expect { - interactor.punch(Date.today) - }.to raise_error error + expect { interactor.punch(Date.today) }.to raise_error error end it 'signs in only once' do interactor = described_class.new