spec/helpers/table_screen.rb in ProMotion-1.0.4 vs spec/helpers/table_screen.rb in ProMotion-1.1.0.rc1

- old
+ new

@@ -1,13 +1,9 @@ class TestTableScreen < ProMotion::TableScreen attr_accessor :tap_counter, :cell_was_deleted - def promotion_table_data - @promotion_table_data - end - def on_load self.tap_counter = 0 set_attributes self.view, { backgroundView: nil, backgroundColor: UIColor.whiteColor } set_nav_bar_right_button UIImage.imageNamed("list.png"), action: :return_to_some_other_screen, type: UIBarButtonItemStylePlain end @@ -39,35 +35,35 @@ { title: "Image Test 4", image: "list.png" }, ] }, { title: "Cell Accessory Tests", cells: [{ - title: "Switch With Action", - accessory: { - view: :switch, - action: :increment_counter, - accessibility_label: "switch_1" - } , - }, { - title: "Switch With Action And Parameters", - accessory: { + title: "Switch With Action", + accessory: { view: :switch, - action: :increment_counter_by, - arguments: { number: 3 }, - accessibility_label: "switch_2" + action: :increment_counter, + accessibility_label: "switch_1" } , - }, { - title: "Switch With Cell Tap, Switch Action And Parameters", - accessory:{ - view: :switch, - action: :increment_counter_by, - arguments: { number: 3 }, - accessibility_label: "switch_3" - }, + }, { + title: "Switch With Action And Parameters", + accessory: { + view: :switch, action: :increment_counter_by, - arguments: { number: 10 } - }] - }] + arguments: { number: 3 }, + accessibility_label: "switch_2" + } , + }, { + title: "Switch With Cell Tap, Switch Action And Parameters", + accessory:{ + view: :switch, + action: :increment_counter_by, + arguments: { number: 3 }, + accessibility_label: "switch_3" + }, + action: :increment_counter_by, + arguments: { number: 10 } + }] + }] end def edit_profile(args={}) args[:id] end