Skip to content

Commit

Permalink
FIX: bug
Browse files Browse the repository at this point in the history
  • Loading branch information
seandong committed Jun 1, 2018
1 parent d00ba36 commit 0062293
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/wework.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
require 'active_support/all'
#require 'active_support/core_ext/object/blank'

lib = "#{File.dirname(__FILE__)}/wework"
Dir["#{lib}/api/methods/*.rb", "#{lib}/token/*.rb"].each { |path| require path }
LIB_PATH = "#{File.dirname(__FILE__)}/wework"
Dir["#{LIB_PATH}/api/methods/*.rb", "#{LIB_PATH}/token/*.rb"].each { |path| require path }

require 'wework/version'
require 'wework/cipher'
Expand Down
3 changes: 2 additions & 1 deletion lib/wework/api/corp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ module Api
class Corp < Base

include Wework::Cipher
include Methods::Contact
include Methods::User
include Methods::Department

attr_reader :suite, :permanent_code

Expand Down
1 change: 1 addition & 0 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)

require 'wework'
require 'mock_redis'
require "minitest/pride"
Expand Down
2 changes: 1 addition & 1 deletion wework.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "rake", "~> 10.0"
spec.add_development_dependency "minitest", "~> 5.10"
spec.add_development_dependency 'webmock', '~>3.0.1'
spec.add_development_dependency 'mock_redis', '~>0.17.0'
spec.add_development_dependency 'mock_redis', '~>0.18.0'
end

0 comments on commit 0062293

Please sign in to comment.