aboutsummaryrefslogtreecommitdiffstats
path: root/spec/views/operations/edit.html.erb_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/views/operations/edit.html.erb_spec.rb')
-rw-r--r--spec/views/operations/edit.html.erb_spec.rb22
1 files changed, 22 insertions, 0 deletions
diff --git a/spec/views/operations/edit.html.erb_spec.rb b/spec/views/operations/edit.html.erb_spec.rb
new file mode 100644
index 0000000..3a2b5f0
--- /dev/null
+++ b/spec/views/operations/edit.html.erb_spec.rb
@@ -0,0 +1,22 @@
+require 'rails_helper'
+
+RSpec.describe "operations/edit", type: :view do
+ let(:operation) {
+ Operation.create!(
+ name: "MyString"
+ )
+ }
+
+ before(:each) do
+ assign(:operation, operation)
+ end
+
+ it "renders the edit operation form" do
+ render
+
+ assert_select "form[action=?][method=?]", operation_path(operation), "post" do
+
+ assert_select "input[name=?]", "operation[name]"
+ end
+ end
+end