Sha256: 3f93dfaf9f15e15f6490b450f109900ed8eb6d9c6728b7ceac9bd57d2d860601

Contents?: true

Size: 483 Bytes

Versions: 9

Compression:

Stored size: 483 Bytes

Contents

require 'rails_helper'

RSpec.describe "users/show", :type => :view do
  before(:each) do
    @user = assign(:user, User.create!(
      :first_name => "First Name",
      :last_name => "Last Name",
      :email => "Email",
      :phone => "Phone"
    ))
  end

  it "renders attributes in <p>" do
    render
    expect(rendered).to match(/First Name/)
    expect(rendered).to match(/Last Name/)
    expect(rendered).to match(/Email/)
    expect(rendered).to match(/Phone/)
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
mail_manager-3.2.25.1 spec/test_app/spec/views/users/show.html.erb_spec.rb
mail_manager-3.2.22.0 spec/test_app/spec/views/users/show.html.erb_spec.rb
mail_manager-3.2.7 spec/test_app/spec/views/users/show.html.erb_spec.rb
mail_manager-3.2.6 spec/test_app/spec/views/users/show.html.erb_spec.rb
mail_manager-3.2.5 spec/test_app/spec/views/users/show.html.erb_spec.rb
mail_manager-3.2.4 spec/test_app/spec/views/users/show.html.erb_spec.rb
mail_manager-3.2.2 spec/test_app/spec/views/users/show.html.erb_spec.rb
mail_manager-3.2.1 spec/test_app/spec/views/users/show.html.erb_spec.rb
mail_manager-3.2.0 spec/test_app/spec/views/users/show.html.erb_spec.rb