Sha256: e4c2bc5858bdeca45c731778222b31d3445743416f17bfe5fdabde5730901ef0

Contents?: true

Size: 837 Bytes

Versions: 16

Compression:

Stored size: 837 Bytes

Contents

require 'rails_helper'

module CustomerVault
  RSpec.describe "customer_vault/corporations/edit", :type => :view do
    before(:each) do
      @corporation = assign(:corporation, Corporation.create!(
        :name => "MyString",
        :email => "MyString",
        :phone => "MyString",
        :fax => "MyString"
      ))
    end

    it "renders the edit corporation form" do
      render

      assert_select "form[action=?][method=?]", customer_vault.corporation_path(@corporation), "post" do

        assert_select "input#corporation_name[name=?]", "corporation[name]"

        assert_select "input#corporation_email[name=?]", "corporation[email]"

        assert_select "input#corporation_phone[name=?]", "corporation[phone]"

        assert_select "input#corporation_fax[name=?]", "corporation[fax]"
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
customer_vault-1.2.5 spec/views/customer_vault/corporations/edit.html.slim_spec.rb
customer_vault-1.2.4 spec/views/customer_vault/corporations/edit.html.slim_spec.rb
customer_vault-1.2.3 spec/views/customer_vault/corporations/edit.html.slim_spec.rb
customer_vault-1.2.2 spec/views/customer_vault/corporations/edit.html.slim_spec.rb
customer_vault-1.2.1 spec/views/customer_vault/corporations/edit.html.slim_spec.rb
customer_vault-1.2.0 spec/views/customer_vault/corporations/edit.html.slim_spec.rb
customer_vault-1.1.0 spec/views/customer_vault/corporations/edit.html.slim_spec.rb
customer_vault-1.0.4 spec/views/customer_vault/corporations/edit.html.slim_spec.rb
customer_vault-1.0.3 spec/views/customer_vault/corporations/edit.html.slim_spec.rb
customer_vault-1.0.2 spec/views/customer_vault/corporations/edit.html.slim_spec.rb
customer_vault-1.0.1 spec/views/customer_vault/corporations/edit.html.slim_spec.rb
customer_vault-1.0.0 spec/views/customer_vault/corporations/edit.html.slim_spec.rb
customer_vault-0.0.4 spec/views/customer_vault/corporations/edit.html.slim_spec.rb
customer_vault-0.0.3 spec/views/customer_vault/corporations/edit.html.slim_spec.rb
customer_vault-0.0.2 spec/views/customer_vault/corporations/edit.html.slim_spec.rb
customer_vault-0.0.1 spec/views/customer_vault/corporations/edit.html.slim_spec.rb