Sha256: 84a0fb3de5719c52cc1588632f2e5ff99183346d682a8a3a786e075d8a8980a7

Contents?: true

Size: 552 Bytes

Versions: 1

Compression:

Stored size: 552 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 '#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.1.0.pre spec/polytrix/challenge_spec.rb