summaryrefslogtreecommitdiff
path: root/spec/views/pms/show.html.erb_spec.rb
blob: 5802887ef2856ec048fa11106d330dc9c48aa3cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
require 'spec_helper'

describe "pms/show" do
  before(:each) do
    @pm = assign(:pm, stub_model(Pm,
      :author => nil,
      :recipient => nil,
      :message => "MyText"
    ))
  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(//)
    rendered.should match(//)
    rendered.should match(/MyText/)
  end
end