basic layout template
This commit is contained in:
18
spec/views/employees/show.html.erb_spec.rb
Normal file
18
spec/views/employees/show.html.erb_spec.rb
Normal file
@@ -0,0 +1,18 @@
|
||||
require 'rails_helper'
|
||||
|
||||
RSpec.describe "employees/show", type: :view do
|
||||
before(:each) do
|
||||
@employee = assign(:employee, Employee.create!(
|
||||
:name => "Name",
|
||||
:role => "Role",
|
||||
:encrypted_access_code => "Encrypted Access Code"
|
||||
))
|
||||
end
|
||||
|
||||
it "renders attributes in <p>" do
|
||||
render
|
||||
expect(rendered).to match(/Name/)
|
||||
expect(rendered).to match(/Role/)
|
||||
expect(rendered).to match(/Encrypted Access Code/)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user