Sha256: 7b7d255f40fe69a6d719efcc6f6df417ba83af5a1a0d8b63cab6d1ea28e9b7c3

Contents?: true

Size: 1.83 KB

Versions: 2

Compression:

Stored size: 1.83 KB

Contents

require 'test_helper'

module Playa
  describe StartupView do
    describe '#render' do
      it 'returns output suitable for Vedeu to parse' do
        StartupView.new.render.must_equal(
          {
            interfaces: [
              {
                name: "progress",
                group: "",
                lines: [
                  {
                    colour: {},
                    streams: [
                      {
                        text: "Welcome to Playa."
                      }
                    ],
                    style: []
                  }
                ],
                colour: {},
                style: "",
                geometry: {},
                cursor: true,
                delay: 0.0
              }, {
                name: "playlist",
                group: "",
                lines: [
                  {
                    colour: {},
                    streams: [
                      {
                        text: "An mp3 player in your console."
                      }
                    ],
                    style: []
                  }
                ],
                colour: {},
                style: "",
                geometry: {},
                cursor: true,
                delay: 0.0
              }, {
                name: "status",
                group: "",
                lines: [
                  {
                    colour: {},
                    streams: [
                      {
                        text: "Press `s` to begin."
                      }
                    ],
                    style: []
                  }
                ],
                colour: {},
                style: "",
                geometry: {},
                cursor: true,
                delay: 0.0
              }
            ]
          }
        )
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
playa-0.0.14 test/lib/playa/views/startup_view_test.rb
playa-0.0.13 test/lib/playa/views/startup_view_test.rb