aboutsummaryrefslogtreecommitdiffstats
path: root/spec/views/operations/show.html.erb_spec.rb
blob: 7affaf4473bbf1bf4f60153c8dcba263c3dac0d7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require 'rails_helper'

RSpec.describe "operations/show", type: :view do
  before(:each) do
    assign(:operation, Operation.create!(
      name: "Name"
    ))
  end

  it "renders attributes in <p>" do
    render
    expect(rendered).to match(/Name/)
  end
end