add files

This commit is contained in:
Maxwell Salzberg 2011-10-15 22:38:21 -07:00
parent 58d496e146
commit f2c16bec85
2 changed files with 25 additions and 0 deletions

View file

@ -0,0 +1,5 @@
class Api::V0::TagsController < ApplicationController
def show
end
end

View file

@ -0,0 +1,20 @@
# Copyright (c) 2010-2011, Diaspora Inc. This file is
# licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file.
require 'spec_helper'
describe Api::V0::TagsController do
describe '#show' do
it 'succeeds' do
get :show, :name => 'alice'
response.should be_success
end
it "returns the basic tag data" do
get :show, :name => 'alice'
parsed_json = JSON.parse(response.body)
parsed_json.keys.should =~ %w(name person_count followed_count posts)
end
end
end