spec/polytrix/challenge_runner_spec.rb in polytrix-0.0.1 vs spec/polytrix/challenge_runner_spec.rb in polytrix-0.1.0.pre
- old
+ new
@@ -1,14 +1,14 @@
module Polytrix
describe ChallengeRunner do
- subject(:runner) { ChallengeRunner.createRunner }
+ subject(:runner) { ChallengeRunner.create_runner }
let(:challenge) do
- Challenge.new :name => 'factorial', :source_file => 'spec/fixtures/factorial.py', :basedir => 'spec/fixtures'
+ Fabricate(:challenge, name: 'factorial', source_file: 'spec/fixtures/factorial.py', basedir: 'spec/fixtures')
end
describe '#run_challenge' do
it 'executes a challenge' do
expect(runner.run_challenge challenge).to be_an_instance_of Challenge
end
end
end
-end
\ No newline at end of file
+end