Sha256: 1005a424d900bffdf8375b9f245d6c27677d0ec4e316b2a9ae222dbacecf7a99
Contents?: true
Size: 695 Bytes
Versions: 1
Compression:
Stored size: 695 Bytes
Contents
require File.dirname(__FILE__) + '/spec_helper.rb' describe AMEE::Profile::Object do it "should have a full path under /profiles" do AMEE::Profile::Object.new.full_path.should == "/profiles" end it "can have a profile UID" do obj = AMEE::Profile::Object.new(:profile_uid => 'ABC123') obj.profile_uid.should == "ABC123" end it "should create correct path if profile UID is set" do obj = AMEE::Profile::Object.new(:profile_uid => 'ABC123') obj.full_path.should == "/profiles/ABC123" end it "can have a profile date" do obj = AMEE::Profile::Object.new(:profile_date => DateTime.new(2008,01)) obj.profile_date.should == DateTime.new(2008,01) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
amee-2.7.0 | spec/profile_object_spec.rb |