skates 0.5.0 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
data/spec/spec_helper.rb DELETED
@@ -1,37 +0,0 @@
1
- require 'templater'
2
-
3
- require File.dirname(__FILE__) + "/../lib/skates"
4
- require File.dirname(__FILE__) + "/../lib/skates/generator"
5
-
6
- # #
7
- # Deactivate the logging
8
- Skates.logger.level = Log4r::FATAL
9
-
10
- Skates.environment = "test"
11
-
12
- if !defined? SkatesSpecHelper
13
- module SkatesSpecHelper
14
- ##
15
- # Load configuration from a local config file
16
- def skates_config
17
- @config ||= YAML.load(File.read(File.join(File.dirname(__FILE__), "config.yaml")))
18
- end
19
-
20
- ##
21
- # Mock for Handler
22
- def handler_mock
23
- @handler_mock ||=
24
- begin
25
- mock(Object, { :on_connected => Proc.new { |conn|
26
- },
27
- :on_disconnected => Proc.new {
28
- # Disconnected
29
- },
30
- :on_stanza => Proc.new { |stanza|
31
- # Stanza!
32
- }
33
- })
34
- end
35
- end
36
- end
37
- end
data/test/skates_test.rb DELETED
@@ -1,7 +0,0 @@
1
- require 'test_helper'
2
-
3
- class SkatesTest < Test::Unit::TestCase
4
- # Tests are done through Rspec... but feel free to add any Unit tests you think might be helpful to understand and fix code more easily
5
- should "probably rename this file and start testing for real" do
6
- end
7
- end
data/test/test_helper.rb DELETED
@@ -1,10 +0,0 @@
1
- require 'rubygems'
2
- require 'test/unit'
3
- require 'shoulda'
4
-
5
- $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
6
- $LOAD_PATH.unshift(File.dirname(__FILE__))
7
- require 'skates'
8
-
9
- class Test::Unit::TestCase
10
- end