spec/utils/field_map_spec.rb in sk-api-1.1.0 vs spec/utils/field_map_spec.rb in sk-api-1.1.1

- old
+ new

@@ -1,22 +1,22 @@ -require 'spec/spec_helper' +require 'spec_helper' describe SKApi::Utils::FieldMap do before :each do @loc_obj = LocalContact.new @rem_obj = RemoteContact.new() @map = SKApi::Utils::FieldMap.new(@loc_obj, @rem_obj, map_hash) end - it "should create a mapping" do + it "should create a mapping" do @map.outdated?.should be_false # both objects are empty end - it "should find outdated fields" do + it "should find outdated fields" do @loc_obj.firstname = 'theo' @map.outdated?.should be_true - @map.outdated.first[:loc_key].should == :firstname + @map.outdated.first[:loc_key].should == :firstname end it "should update outdated remote fields" do @loc_obj.firstname = 'theo' @map.update_remote_outdated \ No newline at end of file