add tags autocomplete
This commit is contained in:
parent
6323cdda68
commit
1e5aa0efff
6 changed files with 63 additions and 0 deletions
31
spec/requests/tags_spec.rb
Normal file
31
spec/requests/tags_spec.rb
Normal file
|
@ -0,0 +1,31 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe "Tags" do
|
||||
before { login_as :user }
|
||||
|
||||
# describe "GET 'tags/index'" do
|
||||
# it "should be successful" do
|
||||
# get 'tags/index'
|
||||
# response.should be_success
|
||||
# end
|
||||
# end
|
||||
|
||||
|
||||
describe "GET '/tags/autocomplete'" do
|
||||
before do
|
||||
@project = Factory :project
|
||||
@project.add_access(@user, :read)
|
||||
@project.tag_list = 'demo1'
|
||||
@project.save
|
||||
visit '/tags/autocomplete.json'
|
||||
end
|
||||
|
||||
|
||||
it "should contains tags" do
|
||||
page.should have_content('demo1')
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue