Skip to content

Commit

Permalink
#2306 still working on specs
Browse files Browse the repository at this point in the history
  • Loading branch information
Kartones committed Feb 18, 2015
1 parent b5864cc commit bf5ff30
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion app/controllers/api/json/visualizations_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Api::Json::VisualizationsController < Api::ApplicationController
skip_before_filter :api_authorization_required, only: [:vizjson1, :vizjson2, :likes_count, :likes_list, :add_like,
:is_liked, :remove_like, :index]
before_filter :optional_api_authorization, only: [:likes_count, :likes_list, :add_like, :is_liked, :remove_like,
:index]
:index, :vizjson2]
before_filter :table_and_schema_from_params, only: [:show, :update, :destroy, :stats, :vizjson1, :vizjson2,
:notify_watching, :list_watching, :likes_count, :likes_list,
:add_like, :is_liked, :remove_like, :set_next_id]
Expand Down
7 changes: 0 additions & 7 deletions spec/requests/api/visualizations_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1561,17 +1561,10 @@ def table_factory(options={})

table_attributes = JSON.parse(last_response.body)
table_id = table_attributes.fetch('id')
table_name = table_attributes.fetch('name')

put "/api/v1/tables/#{table_id}?api_key=#{@api_key}",
{ privacy: privacy }.to_json, @headers

sql = URI.escape(%Q{
INSERT INTO #{table_name} (description)
VALUES('bogus description')
})

#get "/api/v1/queries?sql=#{sql}&api_key=#{@api_key}", {}, @headers
table_attributes
end #table_factory
end # Api::Json::VisualizationsController
Expand Down

0 comments on commit bf5ff30

Please sign in to comment.