Created
November 30, 2010 16:08
-
-
Save duff/721889 to your computer and use it in GitHub Desktop.
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
| class It | |
| include Ripple::Document | |
| property :email, String | |
| 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
| require 'spec_helper' | |
| describe It do | |
| it "retrieves a property value" do | |
| it = It.new(:email => "[email protected]") | |
| it.save! | |
| found = It.find(it.key) | |
| found.email.should == "[email protected]" | |
| end | |
| 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
| Failures: | |
| 1) It should handle a basic property retrieval | |
| Failure/Error: found.email.should == "[email protected]" | |
| expected: "[email protected]", | |
| got: nil (using ==) | |
| # ./spec/models/it_spec.rb:10 | |
| Finished in 0.19633 seconds | |
| 1 example, 1 failure |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment