Sha256: b1037e63ac09b9e93cd52c0563fa04fa08780f47617d5f777b4b17e3989b2db9

Contents?: true

Size: 380 Bytes

Versions: 2

Compression:

Stored size: 380 Bytes

Contents

require 'spec_helper'

describe "foos/show.html.erb" do
  before(:each) do
    @foo = assign(:foo, stub_model(Foo,
      :name => "Name",
      :active => false,
      :style => "Style"
    ))
  end

  it "renders attributes in <p>" do
    render
    rendered.should contain("Name".to_s)
    rendered.should contain(false.to_s)
    rendered.should contain("Style".to_s)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mir_extensions-1.1.0 spec/views/foos/show.html.erb_spec.rb
mir_extensions-1.0.0 spec/views/foos/show.html.erb_spec.rb