Sha256: d92ee5de61807fca416ab1efa7bfc1a39151c1bb31607a32f107aa0e0f789aa3

Contents?: true

Size: 617 Bytes

Versions: 8

Compression:

Stored size: 617 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 TestBrighterPlanetLayout < Test::Unit::TestCase
  def test_application_name
    assert_equal 'Foobar', BrighterPlanetLayout.application_name
  end
  
  def test_latest_blog_post
    assert !BrighterPlanetLayout.latest_blog_post.empty?
  end
  
  def test_latest_tweet
    assert !BrighterPlanetLayout.latest_tweet.empty?
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
brighter_planet_layout-0.3.10 test/test_brighter_planet_layout.rb
brighter_planet_layout-0.3.9 test/test_brighter_planet_layout.rb
brighter_planet_layout-0.3.8 test/test_brighter_planet_layout.rb
brighter_planet_layout-0.3.7 test/test_brighter_planet_layout.rb
brighter_planet_layout-0.3.6 test/test_brighter_planet_layout.rb
brighter_planet_layout-0.3.5 test/test_brighter_planet_layout.rb
brighter_planet_layout-0.3.4 test/test_brighter_planet_layout.rb
brighter_planet_layout-0.3.3 test/test_brighter_planet_layout.rb