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