menu, table,rooms, orders structure

This commit is contained in:
Min Zeya Phyo
2017-04-03 21:26:22 +06:30
parent 40423c12d3
commit 30b4a0f5ff
60 changed files with 536 additions and 101 deletions

View File

@@ -1,25 +0,0 @@
require 'rails_helper'
RSpec.describe 'Seat Table API', type: :request do
# initialize test data
let!(:seat_table) { create_list(:seat_table, 10) }
let(:seat_table_id) { seat_tables.first.id }
# Test suite for GET /todos
describe 'GET /api/restaurant/seat_tables' do
# make HTTP get request before each example
before { get '/api/restaurant/seat_tables' }
it 'returns Seat Tables' do
# Note `json` is a custom helper to parse JSON responses
expect(json).not_to be_empty
expect(json.size).to eq(10)
end
it 'returns status code 200' do
expect(response).to have_http_status(200)
end
end
end