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

RSpec.describe "operations/new", type: :view do
  before(:each) do
    assign(:operation, Operation.new(
      name: "MyString"
    ))
  end

  it "renders new operation form" do
    render

    assert_select "form[action=?][method=?]", operations_path, "post" do

      assert_select "input[name=?]", "operation[name]"
    end
  end
end