Sha256: 1d8d5604eddeccedc9b857c8a9f4e378a8af579ede23578d15a87ab390e73b0e
Contents?: true
Size: 443 Bytes
Versions: 6
Compression:
Stored size: 443 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
6 entries across 6 versions & 1 rubygems