Sha256: 800a4db3a0fa9ef45ed07dc477a4a1e1ccb2b23b7655369a5bad4fee0dac6653

Contents?: true

Size: 547 Bytes

Versions: 16

Compression:

Stored size: 547 Bytes

Contents

require 'rails_helper'
module CustomerVault
  RSpec.describe "customer_vault/corporations/show", :type => :view do
    before(:each) do
      @corporation = assign(:corporation, Corporation.create!(
        :name => "Name",
        :email => "Email",
        :phone => "Phone",
        :fax => "Fax"
      ))
    end

    it "renders attributes in <p>" do
      render
      expect(rendered).to match(/Name/)
      expect(rendered).to match(/Email/)
      expect(rendered).to match(/Phone/)
      expect(rendered).to match(/Fax/)
    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/show.html.slim_spec.rb
customer_vault-1.2.4 spec/views/customer_vault/corporations/show.html.slim_spec.rb
customer_vault-1.2.3 spec/views/customer_vault/corporations/show.html.slim_spec.rb
customer_vault-1.2.2 spec/views/customer_vault/corporations/show.html.slim_spec.rb
customer_vault-1.2.1 spec/views/customer_vault/corporations/show.html.slim_spec.rb
customer_vault-1.2.0 spec/views/customer_vault/corporations/show.html.slim_spec.rb
customer_vault-1.1.0 spec/views/customer_vault/corporations/show.html.slim_spec.rb
customer_vault-1.0.4 spec/views/customer_vault/corporations/show.html.slim_spec.rb
customer_vault-1.0.3 spec/views/customer_vault/corporations/show.html.slim_spec.rb
customer_vault-1.0.2 spec/views/customer_vault/corporations/show.html.slim_spec.rb
customer_vault-1.0.1 spec/views/customer_vault/corporations/show.html.slim_spec.rb
customer_vault-1.0.0 spec/views/customer_vault/corporations/show.html.slim_spec.rb
customer_vault-0.0.4 spec/views/customer_vault/corporations/show.html.slim_spec.rb
customer_vault-0.0.3 spec/views/customer_vault/corporations/show.html.slim_spec.rb
customer_vault-0.0.2 spec/views/customer_vault/corporations/show.html.slim_spec.rb
customer_vault-0.0.1 spec/views/customer_vault/corporations/show.html.slim_spec.rb