Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: pedrocarrico/pimon
base: 64ef5a0d46
...
head fork: pedrocarrico/pimon
compare: c773e1dafa
  • 3 commits
  • 5 files changed
  • 0 commit comments
  • 1 contributor
View
4 Gemfile
@@ -9,9 +9,9 @@ gem 'thin'
gem 'pry', :group => [:development, :test]
group :test do
- gem 'mock_redis', "~> 0.5.0"
+ gem 'mock_redis', '~> 0.5.0'
gem 'rack-test'
- gem 'rspec'
+ gem 'rspec', '~> 2.11.0'
gem 'simplecov', :require => false
gem 'simplecov-rcov'
gem 'timecop'
View
2  Gemfile.lock
@@ -69,7 +69,7 @@ DEPENDENCIES
pry
rack-test
redis
- rspec
+ rspec (~> 2.11.0)
simplecov
simplecov-rcov
sinatra
View
12 README.md
@@ -1,6 +1,6 @@
# Pimon
-[![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)
+[![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)
![Pimon](http://pedrocarrico.net/pimon.jpg "Pimon")
@@ -11,12 +11,10 @@ highcharts to display some nice graphs on your web browser.
## What do I need to get it to work?
1. Install redis
-2. Copy the supplied config.yml.sample to config.yml
-3. bundle
-4. Use the supplied development config template in the config directory and make your own development config.yml
-5. ./dev_server.sh # run the sinatra app
-6. ruby stats_checker.rb start # start collecting some stats
-7. go to http://localhost:3000 and PROFIT!
+2. bundle
+3. Use the supplied development config template in the config directory and make your own development config.yml
+4. ./dev_server.sh # run the sinatra app
+5. go to http://localhost:3000 and PROFIT!
## Configuration
1. basic_auth - enable or disable, configure username and password
View
4 spec/pimon_spec.rb
@@ -19,7 +19,7 @@ def app
it "should be not authorized" do
get '/'
- last_response.status.should == 401
+ expect(last_response.status).to eq(401)
end
end
@@ -29,7 +29,7 @@ def app
it "should be success" do
get '/'
- last_response.should be_ok
+ expect(last_response).to be_ok
end
end
end
View
8 spec/spec_helper.rb
@@ -21,3 +21,11 @@ def format(result)
require 'sinatra'
require 'rack/test'
+
+# Disable the `should` syntax...as explained here:
+# http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
+RSpec.configure do |config|
+ config.expect_with :rspec do |c|
+ c.syntax = :expect
+ end
+end

No commit comments for this range

Something went wrong with that request. Please try again.