require 'spec_helper' module Flydata module Api describe DataEntry do describe '#create' do it 'creates data entry' do api_client = double('api_client') allow(api_client).to receive(:post) api = DataEntry.new(api_client) api.create(data_port_id: 1, log_path: 'log-path') end end end end end