Sha256: fa5a674335becab0266f4ee60263a9a3f45e3987fa610b09037e42ee3b49b4e8

Contents?: true

Size: 525 Bytes

Versions: 6

Compression:

Stored size: 525 Bytes

Contents

require 'spec_helper'

describe "users/show" do
  before(:each) do
    @user = assign(:user, stub_model(User,
      :first_name => "First Name",
      :last_name => "Last Name",
      :email => "Email",
      :phone => 1
    ))
  end

  it "renders attributes in <p>" do
    render
    # Run the generator again with the --webrat flag if you want to use webrat matchers
    rendered.should match(/First Name/)
    rendered.should match(/Last Name/)
    rendered.should match(/Email/)
    rendered.should match(/1/)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mail_manager-3.0.0 spec/test_app/spec/views/users/show.html.erb_spec.rb
mail_manager-0.1.4 spec/test_app/spec/views/users/show.html.erb_spec.rb
mail_manager-0.1.2 spec/test_app/spec/views/users/show.html.erb_spec.rb
mail_manager-0.1.1 spec/test_app/spec/views/users/show.html.erb_spec.rb
mail_manager-0.1.0 spec/test_app/spec/views/users/show.html.erb_spec.rb
mail_manager-0.0.1 spec/test_app/spec/views/users/show.html.erb_spec.rb