Commit Graph

12 Commits

Author SHA1 Message Date
Eloy Durán
7d2ea52374 [bacon-ui] Get rid of a false positive warning. 2014-04-07 15:01:05 +02:00
Eloy Durán
21e0311921 [UI spec] Make tap work with UISwitch.
Fixes http://hipbyte.myjetbrains.com/youtrack/issue/RM-440.
2014-03-05 17:28:00 +01:00
Laurent Sansonetti
f29d89f89a add magic encoding comments to all ruby source files 2014-03-05 12:20:20 +01:00
Eloy Durán
3391825c02 [iOS] Make flick UI test helper work on iOS 7.
Fixes http://hipbyte.myjetbrains.com/youtrack/issue/RM-437
2014-03-04 15:21:50 +01:00
Eloy Durán
fb53ff0948 [test] Make iOS UI helper search from the key window instead.
Fixes http://hipbyte.myjetbrains.com/youtrack/issue/RM-382.
2014-01-16 12:06:31 +01:00
Eloy Durán
c6be6e5bde [UIAutomation] Make the drag command actually send events again.
However, for the moment this only works with 1 touch at a time.
2013-12-12 22:02:49 +01:00
Eloy Durán
dba87148f2 Revert use of PublicAutomation lib. 2013-12-12 22:02:49 +01:00
Eloy Durán
f2c7b956c9 [UIAutomation] Make tap work again. 2013-12-12 22:02:49 +01:00
Eloy Durán
5be6d293e1 [spec] Deprecate block to the tests method of the view test helpers. 2013-11-19 16:55:04 +01:00
Katsuyoshi Ito
30aa719082 to setup controller using block.
I implemented @colinta 's idea which was discussed below link.
https://groups.google.com/d/msg/rubymotion/M9T6LybaEUs/AWip_Vwy5_4J

When you want to setup UIViewController, you can setup it in a block of tests method.

# Example
  describe MyViewController do

    tests MyViewController do |controller|
      # you can set data to the controller here
      controller.my_data = "foo"
    end

    .
    .
  end
2013-06-30 13:00:52 +09:00
Katsuyoshi Ito
c2e4ee81f1 add callback after created controller.
Sometimes view controller has a data.
The controller was set as a root view controller to the window before called "before" block.
But a data is not set at this point.
The view controller access to nil, and crash sometime even if I set a data in "before" block.

After created controller it will call the specified callback method if you set :after_created option

# Example
  describe MyViewController do

    tests MyViewController, after_created: :after_created_controller

    def after_created_controller controller
      # you can set data to the controller here
      controller.my_data = "foo"
    end

    .
    .
  end
2013-06-17 07:57:44 +09:00
Laurent Sansonetti
01ad1cd403 osx 'rake spec' task 2013-05-06 15:14:38 +02:00