# Review: More ActionPack fixes

**URL:** <https://www.ruby-forum.com/t/review-more-actionpack-fixes/181634>\
**Category:** IronRuby\
**Created:** [January 15, 2010, 1:01am UTC](https://www.ruby-forum.com/t/review-more-actionpack-fixes/181634 "2010-01-15T01:01:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shri\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/898d66/32.png) [@Shri\_B](https://www.ruby-forum.com/u/Shri_B)\
**Post date:** [January 15, 2010, 1:01am UTC](https://www.ruby-forum.com/t/review-more-actionpack-fixes/181634/1 "2010-01-15T01:01:38Z")

</div>

tfpt review /shelveset:rails3

- 

```
    ENV["foo"] = "" should set the environment variable to an 

```

empty string, not delete it

- 

```
    Added Iconv::IllegalSequence etc

```

- 

```
    Rails test expect Array#sort_by to be a stable sort (ie. if 

```

#\<=\> returns 0, then the relative order of the elements in the original  
array is maintained). Worked around this at the top of action\_pack\_tests  
(see the comment for more details).

- 

```
    Added -r to utr.rb to run a single test case.
```

---

<div class="post-metadata">

**Author:** ![Shri\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/898d66/32.png) [@Shri\_B](https://www.ruby-forum.com/u/Shri_B)\
**Post date:** [January 15, 2010, 2:09am UTC](https://www.ruby-forum.com/t/review-more-actionpack-fixes/181634/2 "2010-01-15T02:09:36Z")

</div>

- 

```
    Store.rb should be using the send idiom. Your test should be:

```

ENV.send(@method, “foo”, “”)  
ENV[“foo”].should == “”

The second line is fine because we are testing the store method (element  
set in this case, but I think #store is the other one), not the get  
method.

- 

```
    Please use a shared behavior for expecptions_spec.rb. Since 

```

all of the describes are the same, they should all be using the same  
behavior.

- 

```
    Utr.rb: exit!(0) should work for both IronRuby and MRI as a 

```

hard exit

C:\vsl\rubysync\Merlin

[29] \> irb

irb(main):001:0\> at\_exit { puts ‘gotcha’ }

=\> #Proc:0x0410c580@:1(irb)

irb(main):002:0\> exit!(0)

Looks good other than that

From: Shri B.  
Sent: Thursday, January 14, 2010 3:58 PM  
To: IronRuby External Code R.  
Cc: removed\_email\_address@domain.invalid  
Subject: Review: More ActionPack fixes

tfpt review /shelveset:rails3

- 

```
    ENV["foo"] = "" should set the environment variable to an 

```

empty string, not delete it

- 

```
    Added Iconv::IllegalSequence etc

```

- 

```
    Rails test expect Array#sort_by to be a stable sort (ie. if 

```

#\<=\> returns 0, then the relative order of the elements in the original  
array is maintained). Worked around this at the top of action\_pack\_tests  
(see the comment for more details).

- 

```
    Added -r to utr.rb to run a single test case.
```
