Commit 26975fe9dbbc1097affe16689e72c9c80b272f0f

Authored by Rafael Manzo
1 parent e03fd21c

Added Mocha for tests

Showing 3 changed files with 9 additions and 2 deletions   Show diff stats
@@ -50,6 +50,9 @@ group :test do @@ -50,6 +50,9 @@ group :test do
50 50
51 # Test coverage 51 # Test coverage
52 gem 'simplecov', :require => false 52 gem 'simplecov', :require => false
  53 +
  54 + # Simple Mocks
  55 + gem 'mocha', :require => 'mocha/api'
53 end 56 end
54 57
55 group :development, :test do 58 group :development, :test do
1 GIT 1 GIT
2 remote: https://github.com/mezuro/kalibro_entities.git 2 remote: https://github.com/mezuro/kalibro_entities.git
3 - revision: 903dd684d9f3f515aae9703a6fbae036b55b4422 3 + revision: ec35266cc3a79465edde66079cd269d494a06768
4 specs: 4 specs:
5 kalibro_entities (0.0.1) 5 kalibro_entities (0.0.1)
6 savon (~> 2.3.0) 6 savon (~> 2.3.0)
@@ -103,8 +103,11 @@ GEM @@ -103,8 +103,11 @@ GEM
103 mail (2.5.4) 103 mail (2.5.4)
104 mime-types (~> 1.16) 104 mime-types (~> 1.16)
105 treetop (~> 1.4.8) 105 treetop (~> 1.4.8)
  106 + metaclass (0.0.1)
106 mime-types (1.23) 107 mime-types (1.23)
107 minitest (4.7.5) 108 minitest (4.7.5)
  109 + mocha (0.14.0)
  110 + metaclass (~> 0.0.1)
108 modernizr-rails (2.6.2.3) 111 modernizr-rails (2.6.2.3)
109 multi_json (1.7.7) 112 multi_json (1.7.7)
110 net-scp (1.1.2) 113 net-scp (1.1.2)
@@ -222,6 +225,7 @@ DEPENDENCIES @@ -222,6 +225,7 @@ DEPENDENCIES
222 jbuilder (~> 1.2) 225 jbuilder (~> 1.2)
223 jquery-rails 226 jquery-rails
224 kalibro_entities! 227 kalibro_entities!
  228 + mocha
225 modernizr-rails 229 modernizr-rails
226 rails (= 4.0.0) 230 rails (= 4.0.0)
227 rspec-rails 231 rspec-rails
spec/spec_helper.rb
@@ -18,7 +18,7 @@ RSpec.configure do |config| @@ -18,7 +18,7 @@ RSpec.configure do |config|
18 # 18 #
19 # If you prefer to use mocha, flexmock or RR, uncomment the appropriate line: 19 # If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
20 # 20 #
21 - # config.mock_with :mocha 21 + config.mock_with :mocha
22 # config.mock_with :flexmock 22 # config.mock_with :flexmock
23 # config.mock_with :rr 23 # config.mock_with :rr
24 24