motion-kit-events 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/motion-kit-events/version.rb +1 -1
- data/spec/osx/events_spec.rb +23 -0
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc0bc0adde6bc8b4b7c57e1840dcab683a2a1a19
|
4
|
+
data.tar.gz: 686696ad7e4573724d1579fa8c36772b81f9f2ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54b2a64a021aefa76660188e7df6fef9466a2f199c961e2fff44a0bb042529fbd5fdac3b25575e54515025264a5275ab87ca7a39467f91f93562e11222df5c5f
|
7
|
+
data.tar.gz: 2bc13cef9579442aff1697b33b8a32c901b51684c1319548383c71c2b2f3b51eaa758b146f107f9da6ef643bce70cbb806b01fac261df5134fce6004309445bf
|
@@ -0,0 +1,23 @@
|
|
1
|
+
describe 'MotionKit::Events' do
|
2
|
+
|
3
|
+
before do
|
4
|
+
@controller = EventsController.alloc.init
|
5
|
+
@controller.showWindow(self)
|
6
|
+
@controller.window.orderFrontRegardless
|
7
|
+
end
|
8
|
+
|
9
|
+
it 'should respond to the layout trigger' do
|
10
|
+
@controller.success.should.not == true
|
11
|
+
@controller.layout.trigger(:test)
|
12
|
+
@controller.success.should == true
|
13
|
+
end
|
14
|
+
|
15
|
+
it 'should respond to the test button' do
|
16
|
+
@controller.success.should.not == true
|
17
|
+
target = @controller.test_button.target
|
18
|
+
action = @controller.test_button.action
|
19
|
+
target.send(action)
|
20
|
+
@controller.success.should == true
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: motion-kit-events
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Colin T.A. Gray
|
@@ -51,6 +51,7 @@ files:
|
|
51
51
|
- lib/motion-kit-events.rb
|
52
52
|
- README.md
|
53
53
|
- spec/ios/events_spec.rb
|
54
|
+
- spec/osx/events_spec.rb
|
54
55
|
homepage: https://github.com/rubymotion/motion-kit-events
|
55
56
|
licenses:
|
56
57
|
- BSD
|
@@ -77,3 +78,4 @@ specification_version: 4
|
|
77
78
|
summary: Adds simple event methods to MotionKit::Layout classes.
|
78
79
|
test_files:
|
79
80
|
- spec/ios/events_spec.rb
|
81
|
+
- spec/osx/events_spec.rb
|