Sha256: d50eb7e1e030b13d921e034b48b291819f9062d27e7e4d431a0c6cab5555ade2

Contents?: true

Size: 446 Bytes

Versions: 46

Compression:

Stored size: 446 Bytes

Contents

require 'spec_helper'

module Spree
  describe LegacyUser, :type => :model do
    let(:user) { LegacyUser.new }

    it "can generate an API key" do
      expect(user).to receive(:save!)
      user.generate_spree_api_key!
      expect(user.spree_api_key).not_to be_blank
    end

    it "can clear an API key" do
      expect(user).to receive(:save!)
      user.clear_spree_api_key!
      expect(user.spree_api_key).to be_blank
    end
  end
end

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
spree_api-3.1.5 spec/models/spree/legacy_user_spec.rb
spree_api-3.1.4 spec/models/spree/legacy_user_spec.rb
spree_api-3.1.3 spec/models/spree/legacy_user_spec.rb
spree_api-3.1.2 spec/models/spree/legacy_user_spec.rb
spree_api-3.0.10 spec/models/spree/legacy_user_spec.rb
spree_api-3.1.1 spec/models/spree/legacy_user_spec.rb
spree_api-3.1.0 spec/models/spree/legacy_user_spec.rb
spree_api-3.1.0.rc4 spec/models/spree/legacy_user_spec.rb
spree_api-3.0.9 spec/models/spree/legacy_user_spec.rb
spree_api-3.1.0.rc3 spec/models/spree/legacy_user_spec.rb
spree_api-3.1.0.rc2 spec/models/spree/legacy_user_spec.rb
spree_api-3.1.0.rc1 spec/models/spree/legacy_user_spec.rb
spree_api-3.0.8 spec/models/spree/legacy_user_spec.rb
spree_api-3.0.7 spec/models/spree/legacy_user_spec.rb
spree_api-3.0.6.1 spec/models/spree/legacy_user_spec.rb
spree_api-3.0.6 spec/models/spree/legacy_user_spec.rb
spree_api-3.0.5 spec/models/spree/legacy_user_spec.rb
spree_api-3.0.4 spec/models/spree/legacy_user_spec.rb
spree_api-2.4.10 spec/models/spree/legacy_user_spec.rb
spree_api-2.3.13 spec/models/spree/legacy_user_spec.rb