Sha256: 5b937874d304500c422d08375afdfaf0e3cde7c8e025dad4e0ea4f5077614057

Contents?: true

Size: 413 Bytes

Versions: 66

Compression:

Stored size: 413 Bytes

Contents

require 'spec_helper'

module Spree
  describe LegacyUser do
    let(:user) { LegacyUser.new }

    it "can generate an API key" do
      user.should_receive(:save!)
      user.generate_spree_api_key!
      user.spree_api_key.should_not be_blank
    end

    it "can clear an API key" do
      user.should_receive(:save!)
      user.clear_spree_api_key!
      user.spree_api_key.should be_blank
    end
  end
end

Version data entries

66 entries across 66 versions & 2 rubygems

Version Path
dup_spree_api-1.3.0.rc1 spec/models/spree/legacy_user_spec.rb
spree_api-1.3.0.rc1 spec/models/spree/legacy_user_spec.rb
spree_api-1.2.2 spec/models/spree/legacy_user_spec.rb
spree_api-1.2.0 spec/models/spree/legacy_user_spec.rb
spree_api-1.2.0.rc2 spec/models/spree/legacy_user_spec.rb
spree_api-1.2.0.rc1 spec/models/spree/legacy_user_spec.rb