motion-kit-events 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1dff0c162d7aa79745f3688409745e9a096b5af0
4
- data.tar.gz: 9e8bc6302c39eb7c3fa2ee82a2f2e3c42221fda7
3
+ metadata.gz: cc0bc0adde6bc8b4b7c57e1840dcab683a2a1a19
4
+ data.tar.gz: 686696ad7e4573724d1579fa8c36772b81f9f2ea
5
5
  SHA512:
6
- metadata.gz: 4bfcebe914349985e9d232779761fa8d579058daf73f76d1912a54d6ee1e5a8174524cc9d6bea87dd3a90c6f1ffb2c679530b5d86d63dc45d7cd67b1be32bfda
7
- data.tar.gz: 8ce463671100d3867c42658b3f10def5192a461eb6df7cb9e3873ffcd863273b157eee5597ab4d741b76ff56b6e811e054b5756cca37102406a7e370fe0b6ee7
6
+ metadata.gz: 54b2a64a021aefa76660188e7df6fef9466a2f199c961e2fff44a0bb042529fbd5fdac3b25575e54515025264a5275ab87ca7a39467f91f93562e11222df5c5f
7
+ data.tar.gz: 2bc13cef9579442aff1697b33b8a32c901b51684c1319548383c71c2b2f3b51eaa758b146f107f9da6ef643bce70cbb806b01fac261df5134fce6004309445bf
@@ -1,5 +1,5 @@
1
1
  module MotionKit
2
2
  module Events
3
- VERSION = '0.1.0'
3
+ VERSION = '0.2.0'
4
4
  end
5
5
  end
@@ -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.1.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