spec/repeater_spec.rb in xcmonkey-1.0.0 vs spec/repeater_spec.rb in xcmonkey-1.1.0

- old
+ new

@@ -5,10 +5,9 @@ let(:session_file_content_with_empty_actions) { '{ "params": {"udid": "0", "bundle_id": "0", "enable_simulator_keyboard": true}, "actions": [] }' } let(:session_file_content_without_actions) { '{ "params": {"udid": "0", "bundle_id": "0", "enable_simulator_keyboard": true} }' } let(:session_file_content_without_bundle_id) { '{ "params": {"udid": "0", "enable_simulator_keyboard": true}, "actions": [{ "type": "tap", "x": 0, "y": 0 }] }' } let(:session_file_content_without_udid) { '{ "params": {"bundle_id": "0", "enable_simulator_keyboard": true}, "actions": [{ "type": "tap", "x": 0, "y": 0 }] }' } - # TESTME it 'verifies that session cannot be validated without params' do allow(File).to receive(:exist?).and_return(true) allow(File).to receive(:read).and_return(session_file_content_without_params) expect(Logger).to receive(:error).with('Provided session is not valid: `params` should not be `nil`') described_class.new(session_path: session_path)