Skip to content

Commit

Permalink
Fixes setup tests and update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
dsaenztagarro committed Mar 5, 2017
1 parent 6094ef6 commit 7390cd8
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 25 deletions.
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ end

group :test do
gem 'minitest'
gem 'rspec'
gem 'vcr'
gem 'webmock'
# metrics
Expand Down
23 changes: 4 additions & 19 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
GEM
remote: https://rubygems.org/
specs:
activemodel (5.0.1)
activesupport (= 5.0.1)
activesupport (5.0.1)
activemodel (5.0.2)
activesupport (= 5.0.2)
activesupport (5.0.2)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (~> 0.7)
minitest (~> 5.1)
Expand All @@ -26,7 +26,6 @@ GEM
crack (0.4.3)
safe_yaml (~> 1.0.0)
daemons (1.2.4)
diff-lcs (1.3)
docile (1.1.5)
eventmachine (1.2.3)
faraday (0.11.0)
Expand Down Expand Up @@ -59,19 +58,6 @@ GEM
rack-test (0.6.3)
rack (>= 1.0)
rake (12.0.0)
rspec (3.5.0)
rspec-core (~> 3.5.0)
rspec-expectations (~> 3.5.0)
rspec-mocks (~> 3.5.0)
rspec-core (3.5.4)
rspec-support (~> 3.5.0)
rspec-expectations (3.5.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.5.0)
rspec-mocks (3.5.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.5.0)
rspec-support (3.5.0)
safe_yaml (1.0.4)
sawyer (0.8.1)
addressable (>= 2.3.5, < 2.6)
Expand Down Expand Up @@ -124,7 +110,6 @@ DEPENDENCIES
pry
pry-byebug
rake
rspec
simplecov
sinatra
sinatra-contrib
Expand All @@ -133,4 +118,4 @@ DEPENDENCIES
webmock

BUNDLED WITH
1.14.4
1.14.6
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
[![Coverage Status](https://coveralls.io/repos/github/dsaenztagarro/githubbot/badge.svg?branch=master)](https://coveralls.io/github/dsaenztagarro/githubbot?branch=master)
[![Dependency Status](https://gemnasium.com/badges/github.com/dsaenztagarro/githubbot.svg)](https://gemnasium.com/github.com/dsaenztagarro/githubbot)

# Scm
# Mazinger Z

[Mazinger Z](https://en.wikipedia.org/wiki/Mazinger_Z) is an enormous super robot, constructed with a fictitious metal called Super-Alloy Z (超合金Z Chōgokin Zetto?), which is forged from a new element (Japanium) mined from a reservoir found only in the sediment of Mt. Fuji, in Japan. The mecha was built by Professor Juzo Kabuto as a secret weapon against the forces of evil, represented in the series by the Mechanical Beasts of Dr. Hell.

Use `RAILS_ENV` to specify the environment:

Expand Down
2 changes: 2 additions & 0 deletions config/config.yml.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
github:
user: xxxxx
password: xxxxx
personal_access_token: xxxxx
8 changes: 4 additions & 4 deletions test/post_pull_requests_git_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@ def app

def setup
# Create empty repository
path = create_bare_repo
bare_repo_path = create_bare_repo
# Clone repo and push first commit
Dir.chdir(clone_repo(path)) do
Dir.chdir(clone_repo(bare_repo_path)) do
File.open('A.txt', 'w') { |file| file.puts('hello world') }
`git add A.txt`
`git commit -m 'Initial commit'`
`git push --set-upstream origin master`
end
# Clone again the repo with custom directory name to avoid error:
# fatal: destination path 'project-xxxxxxxxxx' already exists and is not an empty directory.
@repo_url = clone_repo(path, directory: "project-2-#{timestamp}")
@repo_url = clone_repo(bare_repo_path, directory: "project-2-#{timestamp}")

# Mongoid.purge!
Mongoid.purge!
end

def teardown
Expand Down

0 comments on commit 7390cd8

Please sign in to comment.