add files
This commit is contained in:
parent
58d496e146
commit
f2c16bec85
2 changed files with 25 additions and 0 deletions
5
app/controllers/api/v0/tags_controller.rb
Normal file
5
app/controllers/api/v0/tags_controller.rb
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
class Api::V0::TagsController < ApplicationController
|
||||
def show
|
||||
|
||||
end
|
||||
end
|
||||
20
spec/controllers/api/v0/tags_controller_spec.rb
Normal file
20
spec/controllers/api/v0/tags_controller_spec.rb
Normal 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
|
||||
Loading…
Reference in a new issue