File: test_dsl.rb

package info (click to toggle)
mikutter 5.1.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 9,780 kB
  • sloc: ruby: 22,912; sh: 186; makefile: 21
file content (27 lines) | stat: -rw-r--r-- 795 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# -*- coding: utf-8 -*-

# class Plugin
#   module GUI; end end

require 'test/unit'
Dir::chdir __dir__ + '/../../../'
require File.expand_path(__dir__ + '/lib/test_unit_extensions')
require File.expand_path(__dir__ + '/utils')
require File.expand_path(__dir__ + '/plugin')
require File.expand_path(__dir__ + '/plugin/gui/gui')

class TC_PluginGUIDSL < Test::Unit::TestCase

  def setup
  end

  must "can initialize tab" do
	Plugin.create :home_timeline do
      tab :home_timeline, "Home Timeline" do
        timeline :home_timeline end end
  end

end
# ~> /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- /home/toshi/Documents/hobby/utils (LoadError)
# ~> 	from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
# ~> 	from -:9:in `<main>'