test/exercism/api_test.rb in exercism-0.0.16 vs test/exercism/api_test.rb in exercism-0.0.17

- old
+ new

@@ -36,12 +36,12 @@ Exercism.stub(:home, home) do VCR.use_cassette('alice-gets-bob') do Exercism::Api.new('http://localhost:4567', Exercism.user, project_dir).fetch - Approvals.verify(File.read(readme_path), name: 'alice_gets_bob_readme') - Approvals.verify(File.read(tests_path), name: 'alice_gets_bob_tests') + Approvals.verify(File.read(readme_path), :name => 'alice_gets_bob_readme', :format => :txt) + Approvals.verify(File.read(tests_path), :name => 'alice_gets_bob_tests', :format => :txt) end end end def test_fetch_upcoming_assignment_from_api @@ -51,11 +51,11 @@ Exercism.stub(:home, home) do VCR.use_cassette('alice-gets-word-count') do Exercism::Api.new('http://localhost:4567', Exercism.user, project_dir).peek - Approvals.verify(File.read(readme_path), name: 'alice_gets_word_count_readme') - Approvals.verify(File.read(tests_path), name: 'alice_gets_word_count_tests') + Approvals.verify(File.read(readme_path), :name => 'alice_gets_word_count_readme', :format => :txt) + Approvals.verify(File.read(tests_path), :name => 'alice_gets_word_count_tests', :format => :txt) end end end def test_send_assignment_to_api