deployments-app 0.0.1 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -1
- data/Gemfile +21 -4
- data/Gemfile.lock +266 -0
- data/Guardfile +3 -0
- data/Rakefile +2 -0
- data/config.ru +5 -0
- data/config/deployments.yml.example +6 -0
- data/deployments-app.gemspec +3 -0
- data/features/deployments/view_deployments.feature +3 -0
- data/features/home/view_home.feature +22 -0
- data/features/pivotal_tracker/view_pivotal_tracker_story.feature +14 -0
- data/features/projects/new_project.feature +20 -0
- data/features/projects/view_deployments_by_project.feature +15 -0
- data/features/projects/view_projects.feature +12 -0
- data/features/step_definitions/common_steps.rb +4 -0
- data/features/step_definitions/deployments/view_deployments_by_project_steps.rb +11 -0
- data/features/step_definitions/deployments/view_deployments_steps.rb +17 -8
- data/features/step_definitions/home/view_home_steps.rb +16 -0
- data/features/step_definitions/pivotal_tracker/view_pivotal_tracker_steps.rb +16 -0
- data/features/step_definitions/projects/new_project_steps.rb +35 -0
- data/features/step_definitions/projects/view_projects_steps.rb +18 -0
- data/features/support/env.rb +8 -0
- data/lib/deployments-app.rb +19 -6
- data/lib/deployments-app/models/commit.rb +14 -16
- data/lib/deployments-app/models/deployment.rb +18 -21
- data/lib/deployments-app/models/project.rb +9 -13
- data/lib/deployments-app/routes/authentication.rb +1 -3
- data/lib/deployments-app/routes/extensions.rb +1 -3
- data/lib/deployments-app/routes/projects.rb +28 -0
- data/lib/deployments-app/routes/root.rb +7 -2
- data/lib/deployments-app/server.rb +13 -0
- data/lib/deployments-app/version.rb +1 -1
- data/lib/deployments-app/views/deployments/index.haml +13 -5
- data/lib/deployments-app/views/layouts/application.haml +39 -0
- data/lib/deployments-app/views/projects/index.haml +10 -0
- data/lib/deployments-app/views/projects/new.haml +7 -0
- data/public/css/bootstrap-responsive.min.css +9 -0
- data/public/css/bootstrap.min.css +622 -0
- data/public/img/glyphicons-halflings-white.png +0 -0
- data/public/img/glyphicons-halflings.png +0 -0
- data/public/js/bootstrap.min.js +6 -0
- data/public/js/jquery.min.js +4 -0
- data/spec/factories/commits.rb +1 -1
- data/spec/factories/deployments.rb +14 -2
- data/spec/factories/projects.rb +3 -2
- data/spec/models/commit_spec.rb +1 -3
- data/spec/models/deployment_spec.rb +13 -27
- data/spec/models/project_spec.rb +16 -7
- data/spec/routes/projects_spec.rb +31 -0
- data/spec/routes/root_spec.rb +50 -0
- data/spec/spec_helper.rb +15 -2
- data/spec/support/data_mapper.rb +1 -4
- data/spec/support/factory_girl.rb +18 -0
- metadata +91 -5
- data/config/database.yml.example +0 -6
- data/spec/routes/deployments_spec.rb +0 -20
data/config/database.yml.example
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
include Deployments::App
|
4
|
-
|
5
|
-
describe Server do
|
6
|
-
let!(:project) { create(:project) }
|
7
|
-
|
8
|
-
context "viewing deployments page without api key" do
|
9
|
-
before { get '/deployments' }
|
10
|
-
|
11
|
-
it { last_response.status.should == 401 }
|
12
|
-
end
|
13
|
-
|
14
|
-
context "viewing deployments page with api key" do
|
15
|
-
before { get "/deployments?api_key=#{project.api_key}" }
|
16
|
-
|
17
|
-
it { last_response.should be_ok }
|
18
|
-
end
|
19
|
-
end
|
20
|
-
|