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/lib/skates/base/view.rb +1 -1
- data/lib/skates/client_connection.rb +1 -1
- data/lib/skates/component_connection.rb +1 -1
- data/lib/skates/xmpp_connection.rb +4 -2
- data/lib/skates/xmpp_parser.rb +2 -2
- metadata +14 -38
- data/spec/bin/skates_spec.rb +0 -0
- data/spec/em_mock.rb +0 -42
- data/spec/lib/skates/base/controller_spec.rb +0 -205
- data/spec/lib/skates/base/stanza_spec.rb +0 -120
- data/spec/lib/skates/base/view_spec.rb +0 -105
- data/spec/lib/skates/client_connection_spec.rb +0 -309
- data/spec/lib/skates/component_connection_spec.rb +0 -144
- data/spec/lib/skates/generator_spec.rb +0 -10
- data/spec/lib/skates/router/dsl_spec.rb +0 -46
- data/spec/lib/skates/router_spec.rb +0 -252
- data/spec/lib/skates/runner_spec.rb +0 -233
- data/spec/lib/skates/xmpp_connection_spec.rb +0 -222
- data/spec/lib/skates/xmpp_parser_spec.rb +0 -469
- data/spec/spec_helper.rb +0 -37
- data/test/skates_test.rb +0 -7
- data/test/test_helper.rb +0 -10
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