Sha256: 0cb83d198b8c1735872c3bcf45906b321d658c2fb06e466cbcfd2c3c346d1b7c
Contents?: true
Size: 563 Bytes
Versions: 1
Compression:
Stored size: 563 Bytes
Contents
module Polytrix describe ChallengeBuilder do let(:implementor) { Polytrix::Implementor.new :name => 'some_sdk', :basedir => 'spec/fixtures' } subject(:builder) { described_class.new implementor } let(:challenge) { challenge = builder.build :name => 'factorial', :vars => {} } it 'builds a Challenge' do expect(challenge).to be_an_instance_of Polytrix::Challenge end it 'finds the source' do expected_file = Pathname.new 'spec/fixtures/factorial.py' expect(challenge.source_file).to eq(expected_file) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
polytrix-0.0.1 | spec/polytrix/challenge_builder_spec.rb |