Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 3 commits
  • 5 files changed
  • 0 comments
  • 1 contributor
4 Gemfile
@@ -9,9 +9,9 @@ gem 'thin'
9 9 gem 'pry', :group => [:development, :test]
10 10
11 11 group :test do
12   - gem 'mock_redis', "~> 0.5.0"
  12 + gem 'mock_redis', '~> 0.5.0'
13 13 gem 'rack-test'
14   - gem 'rspec'
  14 + gem 'rspec', '~> 2.11.0'
15 15 gem 'simplecov', :require => false
16 16 gem 'simplecov-rcov'
17 17 gem 'timecop'
2  Gemfile.lock
@@ -69,7 +69,7 @@ DEPENDENCIES
69 69 pry
70 70 rack-test
71 71 redis
72   - rspec
  72 + rspec (~> 2.11.0)
73 73 simplecov
74 74 simplecov-rcov
75 75 sinatra
12 README.md
Source Rendered
... ... @@ -1,6 +1,6 @@
1 1 # Pimon
2 2
3   -[![Build Status](https://secure.travis-ci.org/pedrocarrico/pimon.png)](http://travis-ci.org/pedrocarrico/pimon) [![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/pedrocarrico/pimon)
  3 +[![Build Status](https://secure.travis-ci.org/pedrocarrico/pimon.png)](http://travis-ci.org/pedrocarrico/pimon) [![Dependency Status](https://gemnasium.com/pedrocarrico/pimon.png?travis)](https://gemnasium.com/pedrocarrico/pimon) [![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/pedrocarrico/pimon)
4 4
5 5 ![Pimon](http://pedrocarrico.net/pimon.jpg "Pimon")
6 6
@@ -11,12 +11,10 @@ highcharts to display some nice graphs on your web browser.
11 11
12 12 ## What do I need to get it to work?
13 13 1. Install redis
14   -2. Copy the supplied config.yml.sample to config.yml
15   -3. bundle
16   -4. Use the supplied development config template in the config directory and make your own development config.yml
17   -5. ./dev_server.sh # run the sinatra app
18   -6. ruby stats_checker.rb start # start collecting some stats
19   -7. go to http://localhost:3000 and PROFIT!
  14 +2. bundle
  15 +3. Use the supplied development config template in the config directory and make your own development config.yml
  16 +4. ./dev_server.sh # run the sinatra app
  17 +5. go to http://localhost:3000 and PROFIT!
20 18
21 19 ## Configuration
22 20 1. basic_auth - enable or disable, configure username and password
4 spec/pimon_spec.rb
@@ -19,7 +19,7 @@ def app
19 19
20 20 it "should be not authorized" do
21 21 get '/'
22   - last_response.status.should == 401
  22 + expect(last_response.status).to eq(401)
23 23 end
24 24 end
25 25
@@ -29,7 +29,7 @@ def app
29 29 it "should be success" do
30 30
31 31 get '/'
32   - last_response.should be_ok
  32 + expect(last_response).to be_ok
33 33 end
34 34 end
35 35 end
8 spec/spec_helper.rb
@@ -21,3 +21,11 @@ def format(result)
21 21
22 22 require 'sinatra'
23 23 require 'rack/test'
  24 +
  25 +# Disable the `should` syntax...as explained here:
  26 +# http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
  27 +RSpec.configure do |config|
  28 + config.expect_with :rspec do |c|
  29 + c.syntax = :expect
  30 + end
  31 +end

No commit comments for this range

Something went wrong with that request. Please try again.