File: test_dsl.rb

package info (click to toggle)
mikutter 3.8.6%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 10,544 kB
  • sloc: ruby: 20,548; sh: 99; makefile: 19
file content (27 lines) | stat: -rw-r--r-- 870 bytes parent folder | download | duplicates (5)
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 File.dirname(__FILE__) + '/../../../'
require File.expand_path(File.dirname(__FILE__) + '/lib/test_unit_extensions')
require File.expand_path(File.dirname(__FILE__) + '/utils')
require File.expand_path(File.dirname(__FILE__) + '/plugin')
require File.expand_path(File.dirname(__FILE__) + '/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>'