Sha256: bc00c21220481165425a5013568d03cb4366c7d434c3a7bb384967b1ec55d6a2
Contents?: true
Size: 580 Bytes
Versions: 5
Compression:
Stored size: 580 Bytes
Contents
module Polytrix describe Challenge do subject(:challenge) do implementor = Polytrix::Implementor.new name: 'some_sdk', basedir: 'spec/fixtures' implementor.build_challenge name: 'factorial', vars: {} end describe '#exec' do it 'executes the challenge and returns itself' do expect(challenge.exec).to be_an_instance_of Challenge expect(challenge.exec).to eq(challenge) end it 'stores the result' do result = challenge.exec[:result] expect(result).to be_an_instance_of Result end end end end
Version data entries
5 entries across 5 versions & 1 rubygems