Sha256: a2d405c8363009a719432317dfd6e9670c4d8833ceb87d5c678839c34fdb2498

Contents?: true

Size: 621 Bytes

Versions: 17

Compression:

Stored size: 621 Bytes

Contents

require 'helper'

require 'singleton'
module Rails
  module VERSION
    MAJOR = 3
    MINOR = 0
    PATCH = 4
    STRING = '3.0.4'
  end
  def self.application
    Application.instance
  end
  class Application
    include Singleton
    def name
      'Foobar'
    end
  end
end

class TestBrighterPlanet.layout < Test::Unit::TestCase
  def test_application_name
    assert_equal 'Foobar', BrighterPlanet.layout.application_name
  end
  
  def test_latest_blog_post
    assert !BrighterPlanet.layout.latest_blog_post.empty?
  end
  
  def test_latest_tweet
    assert !BrighterPlanet.layout.latest_tweet.empty?
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
brighter_planet_layout-0.5.5 test/test_brighter_planet_layout.rb
brighter_planet_layout-0.5.4 test/test_brighter_planet_layout.rb
brighter_planet_layout-0.5.3 test/test_brighter_planet_layout.rb
brighter_planet_layout-0.5.2 test/test_brighter_planet_layout.rb
brighter_planet_layout-0.5.1 test/test_brighter_planet_layout.rb
brighter_planet_layout-0.4.5 test/test_brighter_planet_layout.rb
brighter_planet_layout-0.4.4 test/test_brighter_planet_layout.rb
brighter_planet_layout-0.4.3 test/test_brighter_planet_layout.rb
brighter_planet_layout-0.4.2 test/test_brighter_planet_layout.rb
brighter_planet_layout-0.4.1 test/test_brighter_planet_layout.rb
brighter_planet_layout-0.4.0 test/test_brighter_planet_layout.rb
brighter_planet_layout-0.3.16 test/test_brighter_planet_layout.rb
brighter_planet_layout-0.3.15 test/test_brighter_planet_layout.rb
brighter_planet_layout-0.3.14 test/test_brighter_planet_layout.rb
brighter_planet_layout-0.3.13 test/test_brighter_planet_layout.rb
brighter_planet_layout-0.3.12 test/test_brighter_planet_layout.rb
brighter_planet_layout-0.3.11 test/test_brighter_planet_layout.rb