public
Description: RSpactor is a Mac OS X application that takes care of your RSpec examples.
Homepage: http://rubyphunk.com/projects/rspactor
Clone URL: git://github.com/rubyphunk/rspactor.git
Click here to lend your support to: rspactor and make a donation at www.pledgie.com !
Make the hideBox work :)
rubyphunk (author)
Wed Jul 23 02:24:59 -0700 2008
commit  a5b67be856296ce4336949662761c2d9e4d398a2
tree    bb431c619840f85fa7ef41fd2d7e83141d83a6a5
parent  3df86da0a2f929cd69bc9fc1bc4014b6cdc3ccca
...
386
387
388
389
 
390
391
 
392
393
394
...
522
523
524
525
526
527
528
529
530
531
...
386
387
388
 
389
390
 
391
392
393
394
...
522
523
524
 
 
525
 
526
527
528
0
@@ -386,9 +386,9 @@
0
       </array>
0
       <key>TableOfContents</key>
0
       <array>
0
- <string>E16DF6D40E371BC300FD67FD</string>
0
+ <string>E15968580E372ECF00B4990D</string>
0
         <string>1CE0B1FE06471DED0097A5F4</string>
0
- <string>E16DF6D50E371BC300FD67FD</string>
0
+ <string>E15968590E372ECF00B4990D</string>
0
         <string>1CE0B20306471E060097A5F4</string>
0
         <string>1CE0B20506471E060097A5F4</string>
0
       </array>
0
@@ -522,10 +522,7 @@
0
   <integer>5</integer>
0
   <key>WindowOrderList</key>
0
   <array>
0
- <string>1CD10A99069EF8BA00B06720</string>
0
- <string>E1A615C10DF82908007DEAC7</string>
0
     <string>/Users/andreas/ruby/rspactor/RSpactor.xcodeproj</string>
0
- <string>1C78EAAD065D492600B07095</string>
0
   </array>
0
   <key>WindowString</key>
0
   <string>533 355 1387 823 0 0 1920 1178 </string>
...
105
106
107
108
109
 
 
110
111
112
...
105
106
107
 
 
108
109
110
111
112
0
@@ -105,8 +105,8 @@
0
           PBXFileDataSource_Warnings_ColumnID,
0
         );
0
       };
0
- PBXPerProjectTemplateStateSaveDate = 238492608;
0
- PBXWorkspaceStateSaveDate = 238492608;
0
+ PBXPerProjectTemplateStateSaveDate = 238497485;
0
+ PBXWorkspaceStateSaveDate = 238497485;
0
     };
0
     sourceControlManager = E1A615CA0DF82908007DEAC7 /* Source Control */;
0
     userBuildSettings = {
...
7
8
9
 
10
11
12
...
17
18
19
20
 
21
22
23
...
37
38
39
 
 
 
 
40
...
7
8
9
10
11
12
13
...
18
19
20
 
21
22
23
24
...
38
39
40
41
42
43
44
45
0
@@ -7,6 +7,7 @@ class DrawerController < OSX::NSWindowController
0
   def awakeFromNib
0
     restoreSizeFromLastSession
0
     @hideBox.state = $app.default_from_key(:hide_box_state, 0)
0
+ set_filter(@hideBox.state)
0
     @drawer.openOnEdge(0)
0
     receive :retain_focus_on_drawer, :setFocusOnTable
0
   end
0
@@ -17,7 +18,7 @@ class DrawerController < OSX::NSWindowController
0
   
0
   def hideBoxClicked(sender)
0
     $app.default_for_key(:hide_box_state, sender.state)
0
- $spec_list.filter = (sender.state == 1) ? :failed : :all
0
+ set_filter(sender.state)
0
     $app.post_notification :file_table_reload_required
0
   end
0
 
0
@@ -37,4 +38,8 @@ class DrawerController < OSX::NSWindowController
0
     end
0
     @drawer.setContentSize(drawer_size)
0
   end
0
+
0
+ def set_filter(state)
0
+ $spec_list.filter = (state == 1) ? :failed : :all
0
+ end
0
 end
...
38
39
40
41
42
43
44
45
46
47
...
38
39
40
 
 
 
 
41
42
43
0
@@ -38,10 +38,6 @@ class SpecTable < OSX::NSObject
0
     @byFirstFailingSpecSelectedRowIndex = nil
0
   end
0
   
0
- # def clearSelection
0
- # $allSpecsTableView.deselectAll(self)
0
- # end
0
-
0
   def numberOfRowsInTableView(specTable)
0
     $spec_list.files.size
0
   end
...
11
12
13
14
 
15
16
17
...
11
12
13
 
14
15
16
17
0
@@ -11,7 +11,7 @@ describe DrawerController do
0
     $spec_list = mock('SpecList')
0
     $spec_list.stub!(:filter=)
0
     @mock_window = mock('Window')
0
- @mock_hide_box = mock('HideBox')
0
+ @mock_hide_box = mock('HideBox', :state => 1)
0
     @mock_hide_box.stub!(:state=)
0
     @mock_drawer = mock('Drawer')
0
     @mock_drawer.stub!(:openOnEdge)

Comments

    No one has commented yet.