Commit fdb5c82c331e43dc5d0466d2a4c90ce3e649fc7b

Authored by miks
2 parents 3b5a90bd cc7c6d53

Merge branch 'master' into project_hooks_api

Showing 1 changed file with 10 additions and 0 deletions   Show diff stats
spec/requests/projects_spec.rb
@@ -3,6 +3,16 @@ require 'spec_helper' @@ -3,6 +3,16 @@ require 'spec_helper'
3 describe "Projects" do 3 describe "Projects" do
4 before { login_as :user } 4 before { login_as :user }
5 5
  6 + describe 'GET /project/new' do
  7 + it "should work autocomplete", :js => true do
  8 + visit new_project_path
  9 +
  10 + fill_in 'project_name', with: 'Awesome'
  11 + find("#project_path").value.should == 'awesome'
  12 + find("#project_code").value.should == 'awesome'
  13 + end
  14 + end
  15 +
6 describe "GET /projects/show" do 16 describe "GET /projects/show" do
7 before do 17 before do
8 @project = Factory :project, owner: @user 18 @project = Factory :project, owner: @user