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.1.8 spec/models/spree/legacy_user_spec.rb
spree_api-2.0.12 spec/models/spree/legacy_user_spec.rb
spree_api-2.3.1 spec/models/spree/legacy_user_spec.rb
spree_api-2.2.4 spec/models/spree/legacy_user_spec.rb
spree_api-2.2.3 spec/models/spree/legacy_user_spec.rb
spree_api-2.3.0 spec/models/spree/legacy_user_spec.rb
spree_api-2.2.2 spec/models/spree/legacy_user_spec.rb
spree_api-2.1.7 spec/models/spree/legacy_user_spec.rb
spree_api-2.0.11 spec/models/spree/legacy_user_spec.rb
spree_api-2.0.10 spec/models/spree/legacy_user_spec.rb
spree_api-2.1.6 spec/models/spree/legacy_user_spec.rb
spree_api-2.2.1 spec/models/spree/legacy_user_spec.rb
spree_api-2.2.0 spec/models/spree/legacy_user_spec.rb
spree_api-2.1.5 spec/models/spree/legacy_user_spec.rb
spree_api-2.0.9 spec/models/spree/legacy_user_spec.rb
spree_api-1.3.5 spec/models/spree/legacy_user_spec.rb
spree_api-2.1.4 spec/models/spree/legacy_user_spec.rb
spree_api-2.0.8 spec/models/spree/legacy_user_spec.rb
spree_api-2.1.3 spec/models/spree/legacy_user_spec.rb
spree_api-2.0.7 spec/models/spree/legacy_user_spec.rb