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