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
spree_api-2.2.14 spec/models/spree/legacy_user_spec.rb
spree_api-2.2.13 spec/models/spree/legacy_user_spec.rb
spree_api-2.2.12 spec/models/spree/legacy_user_spec.rb
spree_api-2.2.11 spec/models/spree/legacy_user_spec.rb
spree_api-2.2.10 spec/models/spree/legacy_user_spec.rb
spree_api-2.2.9 spec/models/spree/legacy_user_spec.rb
spree_api-2.1.12 spec/models/spree/legacy_user_spec.rb
spree_api-2.2.8 spec/models/spree/legacy_user_spec.rb
spree_api-2.1.11 spec/models/spree/legacy_user_spec.rb
spree_api-2.2.7 spec/models/spree/legacy_user_spec.rb
spree_api-2.1.10 spec/models/spree/legacy_user_spec.rb
spree_api-2.0.13 spec/models/spree/legacy_user_spec.rb
spree_api-2.4.0.rc2 spec/models/spree/legacy_user_spec.rb
spree_api-2.4.0.rc1 spec/models/spree/legacy_user_spec.rb
spree_api-2.3.4 spec/models/spree/legacy_user_spec.rb
spree_api-2.1.9 spec/models/spree/legacy_user_spec.rb
spree_api-2.2.6 spec/models/spree/legacy_user_spec.rb
spree_api-2.3.3 spec/models/spree/legacy_user_spec.rb
spree_api-2.3.2 spec/models/spree/legacy_user_spec.rb
spree_api-2.2.5 spec/models/spree/legacy_user_spec.rb