Sha256: 859c4419c0314753dc479234d8629dcfade9409accb77939f15f909cdc6ed88c
Contents?: true
Size: 608 Bytes
Versions: 1
Compression:
Stored size: 608 Bytes
Contents
module Polytrix describe Challenge do subject(:challenge) do implementor = Polytrix::Implementor.new :name => 'some_sdk', :basedir => 'spec/fixtures' builder = Polytrix::ChallengeBuilder.new implementor builder.build :name => 'factorial', :vars => {} end describe '#run' do it 'executes the challenge and returns itself' do expect(challenge.run).to be_an_instance_of Challenge expect(challenge.run).to eq(challenge) end it 'stores the result' do expect(challenge.run[:result]).to be_an_instance_of Result end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
polytrix-0.0.1 | spec/polytrix/challenge_spec.rb |