Sha256: 18f8dc45b5b72fb6505ca1f85f8c99222f3a881abe5e3f421ae77cfef66ead8f
Contents?: true
Size: 697 Bytes
Versions: 9
Compression:
Stored size: 697 Bytes
Contents
require_relative '../spec_helper' require 'wright/resource/user' describe Wright::Resource::User do before(:each) do @user = Wright::Resource::User.new('johndoe') @provider = Minitest::Mock.new @user.instance_variable_set(:@provider, @provider) end describe '#create' do it 'should ask the provider to create the user' do @provider.expect(:create, nil) @provider.expect(:updated?, true) @user.create @provider.verify end end describe '#remove' do it 'should ask the provider to remove the user' do @provider.expect(:remove, nil) @provider.expect(:updated?, true) @user.remove @provider.verify end end end
Version data entries
9 entries across 9 versions & 1 rubygems