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