queue and crm view updated

This commit is contained in:
Aung Myo
2017-06-09 09:29:25 +06:30
parent ea4f50e779
commit 35277ac000
41 changed files with 685 additions and 318 deletions

View File

@@ -0,0 +1,18 @@
require 'rails_helper'
RSpec.describe "crm/dining_queues/show", type: :view do
before(:each) do
@crm_dining_queue = assign(:crm_dining_queue, Crm::DiningQueue.create!(
:name => "Name",
:contact => "Contact",
:queue_no => "Queue No"
))
end
it "renders attributes in <p>" do
render
expect(rendered).to match(/Name/)
expect(rendered).to match(/Contact/)
expect(rendered).to match(/Queue No/)
end
end