Sha256: 75eaa079285e3500ec0e3542b04c9f77b0a9dc56c77a7b3aadc9b8db978bb544

Contents?: true

Size: 853 Bytes

Versions: 5

Compression:

Stored size: 853 Bytes

Contents

# Copyright (C) 2008-2011 AMEE UK Ltd. - http://www.amee.com
# Released as Open Source Software under the BSD 3-Clause license. See LICENSE.txt for details.

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

5 entries across 5 versions & 1 rubygems

Version Path
amee-3.2.1 spec/profile_object_spec.rb
amee-3.2.0 spec/profile_object_spec.rb
amee-3.1.2 spec/profile_object_spec.rb
amee-3.1.1 spec/profile_object_spec.rb
amee-3.0.1 spec/profile_object_spec.rb