require 'rails_helper'

RSpec.describe "static_page_texts/edit", type: :view do
  before(:each) do
    @static_page_text = assign(:static_page_text, StaticPageText.create!(
      :description => "MyString",
      :text => "MyText"
    ))
  end

  it "renders the edit static_page_text form" do
    render

    assert_select "form[action=?][method=?]", static_page_text_path(@static_page_text), "post" do

      assert_select "input#static_page_text_description[name=?]", "static_page_text[description]"

      assert_select "textarea#static_page_text_text[name=?]", "static_page_text[text]"
    end
  end
end
