Sha256: bc816377ce6ff89aacebeb7e6308f5a36b4cbeb87ef2f84cf7a6d974ebfd8dd1
Contents?: true
Size: 377 Bytes
Versions: 10
Compression:
Stored size: 377 Bytes
Contents
require 'spec_helper' module Spree describe User do let(:user) { User.new } it "can generate an API key" do user.should_receive(:save!) user.generate_api_key! user.api_key.should_not be_blank end it "can clear an API key" do user.should_receive(:save!) user.clear_api_key! user.api_key.should be_blank end end end
Version data entries
10 entries across 10 versions & 1 rubygems