Browse files

Disable deprecated test

This will be removed shortly.
  • Loading branch information...
1 parent f8c819c commit c360bcc165c6c7a9000730a1c9e0935daaff4bee @alext alext committed Aug 2, 2012
Showing with 18 additions and 17 deletions.
  1. +18 −17 test/integration/api_test.rb
View
35 test/integration/api_test.rb
@@ -18,21 +18,22 @@ def startup_server
Capybara.current_driver = :mechanize
end
- test "Can create an artefact via the api" do
- create_test_user
- api_client = GdsApi::Panopticon.new(nil, endpoint_url: server.url(""), timeout: 5)
- artefact_fixture = {slug: "foo", name: "Foo", owning_app: "Test", kind: "custom-application", need_id: 1}
-
- created = nil
- assert_difference "Artefact.count" do
- created = api_client.create_artefact(artefact_fixture)
- end
-
- assert ! created['id'].nil?
- found_artefact = Artefact.find(created['id'])
- assert artefact_fixture[:slug], found_artefact.slug
- assert artefact_fixture[:name], found_artefact.name
- assert artefact_fixture[:owning_app], found_artefact.owning_app
- assert artefact_fixture[:kind], found_artefact.kind
- end
+ #pending "this is testing deprecated functionality"
+ #should "Can create an artefact via the api" do
+ #create_test_user
+ #api_client = GdsApi::Panopticon.new(nil, endpoint_url: server.url(""), timeout: 5)
+ #artefact_fixture = {slug: "foo", name: "Foo", owning_app: "Test", kind: "custom-application", need_id: 1}
+ #
+ #created = nil
+ #assert_difference "Artefact.count" do
+ #created = api_client.create_artefact(artefact_fixture)
+ #end
+ #
+ #assert ! created['id'].nil?
+ #found_artefact = Artefact.find(created['id'])
+ #assert artefact_fixture[:slug], found_artefact.slug
+ #assert artefact_fixture[:name], found_artefact.name
+ #assert artefact_fixture[:owning_app], found_artefact.owning_app
+ #assert artefact_fixture[:kind], found_artefact.kind
+ #end
end

0 comments on commit c360bcc

Please sign in to comment.