Sha256: a931ee36a4a8d00b0490790c5cf0f3a93e3cd4e30493350927111d6e923c70b4

Contents?: true

Size: 525 Bytes

Versions: 3

Compression:

Stored size: 525 Bytes

Contents

require 'spec_helper'

describe 'status_cat/status/index.html.erb' do

  before( :each ) do
    @checkers = StatusCat::Status.all
    assign( :checkers, @checkers )
  end

  it 'includes an h1 tag' do
    render
    rendered.should have_selector( :h1, :content => t( :h1, :scope => :status_cat )  )
  end

  it 'uses the status_title helper'  do
    view.should_receive( :status_title )
    render
  end

  it 'uses the status_table helper'  do
    view.should_receive( :status_table ).with( @checkers )
    render
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
status_cat-0.1.0 spec/views/status_cat/status/index.html.erb_spec.rb
status_cat-0.0.9 spec/views/status_cat/status/index.html.erb_spec.rb
status_cat-0.0.8 spec/views/status_cat/status/index.html.erb_spec.rb