Sha256: f4966e9bf7f277523ed06706d91b7e84eb524bc1e26f826b3d8f0ec1f8f190f7

Contents?: true

Size: 827 Bytes

Versions: 14

Compression:

Stored size: 827 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 '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

14 entries across 14 versions & 1 rubygems

Version Path
amee-4.4.0 spec/profile_object_spec.rb
amee-4.3.2 spec/profile_object_spec.rb
amee-4.3.1 spec/profile_object_spec.rb
amee-4.3.0 spec/profile_object_spec.rb
amee-4.2.0 spec/profile_object_spec.rb
amee-4.1.7 spec/profile_object_spec.rb
amee-4.1.6 spec/profile_object_spec.rb
amee-4.1.5 spec/profile_object_spec.rb
amee-4.1.4 spec/profile_object_spec.rb
amee-4.1.3 spec/profile_object_spec.rb
amee-4.1.2 spec/profile_object_spec.rb
amee-4.1.1 spec/profile_object_spec.rb
amee-4.1.0 spec/profile_object_spec.rb
amee-4.0.0 spec/profile_object_spec.rb