vedeu 0.4.33 → 0.4.34
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vedeu/bindings.rb +11 -0
- data/lib/vedeu/configuration/configuration.rb +6 -0
- data/lib/vedeu/dsl/geometry.rb +5 -0
- data/lib/vedeu/events/event.rb +3 -1
- data/lib/vedeu/input/mapper.rb +3 -0
- data/lib/vedeu/models/focus.rb +15 -0
- data/lib/vedeu/output/renderers/all.rb +9 -0
- data/lib/vedeu/repositories/repositories/background_colours.rb +3 -0
- data/lib/vedeu/repositories/repositories/borders.rb +6 -0
- data/lib/vedeu/repositories/repositories/buffers.rb +6 -0
- data/lib/vedeu/repositories/repositories/cursors.rb +12 -0
- data/lib/vedeu/repositories/repositories/events_repository.rb +6 -0
- data/lib/vedeu/repositories/repositories/foreground_colours.rb +3 -0
- data/lib/vedeu/repositories/repositories/geometries.rb +6 -0
- data/lib/vedeu/repositories/repositories/groups.rb +9 -0
- data/lib/vedeu/repositories/repositories/interfaces_repository.rb +9 -0
- data/lib/vedeu/repositories/repositories/keymaps.rb +6 -0
- data/lib/vedeu/repositories/repositories/menus.rb +6 -0
- data/lib/vedeu/support/terminal.rb +3 -0
- data/lib/vedeu/support/timer.rb +5 -0
- data/lib/vedeu/version.rb +1 -1
- data/test/lib/vedeu/buffers/buffer_test.rb +159 -93
- data/test/lib/vedeu/configuration/api_test.rb +36 -10
- data/test/lib/vedeu/configuration/cli_test.rb +27 -27
- data/test/lib/vedeu/configuration/configuration_test.rb +8 -7
- data/test/lib/vedeu/cursor/cursor_test.rb +34 -0
- data/test/lib/vedeu/cursor/move_test.rb +32 -2
- data/test/lib/vedeu/distributed/client_test.rb +3 -5
- data/test/lib/vedeu/distributed/server_test.rb +37 -14
- data/test/lib/vedeu/distributed/subprocess_test.rb +12 -0
- data/test/lib/vedeu/distributed/uri_test.rb +2 -0
- data/test/lib/vedeu/dsl/border_test.rb +5 -7
- data/test/lib/vedeu/dsl/geometry_test.rb +6 -4
- data/test/lib/vedeu/dsl/line_test.rb +0 -4
- data/test/lib/vedeu/dsl/presentation_test.rb +8 -7
- data/test/lib/vedeu/events/event_test.rb +6 -6
- data/test/lib/vedeu/geometry/geometry_test.rb +53 -0
- data/test/lib/vedeu/input/keymap_test.rb +4 -0
- data/test/lib/vedeu/models/char_test.rb +24 -0
- data/test/lib/vedeu/models/group_test.rb +4 -0
- data/test/lib/vedeu/models/interface_test.rb +65 -0
- data/test/lib/vedeu/models/menu_test.rb +24 -0
- data/test/lib/vedeu/models/stream_test.rb +23 -0
- data/test/lib/vedeu/null/geometry_test.rb +12 -0
- data/test/lib/vedeu/output/border_test.rb +109 -0
- data/test/lib/vedeu/output/clear_test.rb +8 -8
- data/test/lib/vedeu/output/renderers/all_test.rb +16 -16
- data/test/lib/vedeu/output/style_test.rb +8 -0
- data/test/lib/vedeu/output/virtual_terminal_test.rb +14 -18
- data/test/lib/vedeu/repositories/collection_test.rb +21 -0
- data/test/lib/vedeu/repositories/model_test.rb +8 -0
- metadata +2 -2
@@ -17,6 +17,27 @@ module Vedeu
|
|
17
17
|
it { instance.instance_variable_get('@parent').must_equal(parent) }
|
18
18
|
end
|
19
19
|
|
20
|
+
describe '#collection' do
|
21
|
+
it { instance.must_respond_to(:collection) }
|
22
|
+
it { instance.must_respond_to(:all) }
|
23
|
+
end
|
24
|
+
|
25
|
+
describe '#parent' do
|
26
|
+
it { instance.must_respond_to(:parent) }
|
27
|
+
end
|
28
|
+
|
29
|
+
describe '#parent=' do
|
30
|
+
it { instance.must_respond_to(:parent=) }
|
31
|
+
end
|
32
|
+
|
33
|
+
describe '#name' do
|
34
|
+
it { instance.must_respond_to(:name) }
|
35
|
+
end
|
36
|
+
|
37
|
+
describe '#name=' do
|
38
|
+
it { instance.must_respond_to(:name=) }
|
39
|
+
end
|
40
|
+
|
20
41
|
describe '#[]' do
|
21
42
|
let(:collection) { [:hydrogen, :helium, :lithium, :beryllium] }
|
22
43
|
let(:_value) { 1..2 }
|
@@ -29,6 +29,14 @@ module Vedeu
|
|
29
29
|
}
|
30
30
|
}
|
31
31
|
|
32
|
+
describe '#repository' do
|
33
|
+
it { model_instance.must_respond_to(:repository) }
|
34
|
+
end
|
35
|
+
|
36
|
+
describe '#repository=' do
|
37
|
+
it { model_instance.must_respond_to(:repository=) }
|
38
|
+
end
|
39
|
+
|
32
40
|
describe '#deputy' do
|
33
41
|
subject { model_instance.deputy }
|
34
42
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vedeu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.34
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gavin Laking
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|