spec/polytrix/challenge_spec.rb in polytrix-0.0.1 vs spec/polytrix/challenge_spec.rb in polytrix-0.1.0.pre
- old
+ new
@@ -1,11 +1,10 @@
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 => {}
+ 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
@@ -15,6 +14,6 @@
it 'stores the result' do
expect(challenge.run[:result]).to be_an_instance_of Result
end
end
end
-end
\ No newline at end of file
+end