Created
December 13, 2011 16:36
-
-
Save daveworth/1472820 to your computer and use it in GitHub Desktop.
Now with external attributes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'spec_helper' | |
| describe AnotherModel do | |
| it "should process a fixture" do | |
| ap expected = AnotherModel.human_attribute_name('expected_countries') | |
| index = 0 | |
| country_fixture.each_line do |line| | |
| line.should match expected[index] | |
| index += 1 | |
| end | |
| end | |
| # ... snip ... | |
| # auxiliary functions still need to be here. | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| en: | |
| activerecord: | |
| attributes: | |
| another_model: | |
| expected_countries: [Zimbabwe, Tibet, Equador] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment