Skip to content

Instantly share code, notes, and snippets.

@duff
Created November 30, 2010 16:08
Show Gist options
  • Save duff/721889 to your computer and use it in GitHub Desktop.
Save duff/721889 to your computer and use it in GitHub Desktop.
class It
include Ripple::Document
property :email, String
end
require 'spec_helper'
describe It do
it "retrieves a property value" do
it = It.new(:email => "whatever@example.com")
it.save!
found = It.find(it.key)
found.email.should == "whatever@example.com"
end
end
Failures:
1) It should handle a basic property retrieval
Failure/Error: found.email.should == "whatever@example.com"
expected: "whatever@example.com",
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