Sha256: e888608fef834e754884fe4757410e156376f2ede327722fb4e2ce723617df1a

Contents?: true

Size: 379 Bytes

Versions: 2

Compression:

Stored size: 379 Bytes

Contents

require 'spec_helper'

describe "users/show" do
  before(:each) do
    @user = assign(:user, stub_model(User,
      name: "Name",
      email: "Email"
    ))
  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(/Name/)
    rendered.should match(/Email/)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
stuffer-0.0.4 spec/teststuff/spec/views/users/show.html.erb_spec.rb
stuffer-0.0.3 spec/teststuff/spec/views/users/show.html.erb_spec.rb