Skip to content
This repository has been archived by the owner on Apr 26, 2022. It is now read-only.

Commit

Permalink
Stubs Pusher API for Cucumber
Browse files Browse the repository at this point in the history
  • Loading branch information
mezis committed Aug 27, 2013
1 parent dd92520 commit 7fe9a27
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 1 deletion.
1 change: 0 additions & 1 deletion .env
@@ -1,4 +1,3 @@
RAILS_ENV=development
PORT=3000
UNICORN_TIMEOUT=60
UNICORN_WORKERS=1
Expand Down
3 changes: 3 additions & 0 deletions .env.test
@@ -0,0 +1,3 @@
PUSHER_APP_ID=1234
PUSHER_KEY=deadbeef
PUSHER_SECRET=deadbeef
3 changes: 3 additions & 0 deletions Gemfile
Expand Up @@ -140,6 +140,9 @@ group :development do
gem 'rb-fchange', require:false
gem 'terminal-notifier-guard', require:false

# stub version of the Pusher API
gem 'pusher-fake'

# measure test coverage
gem 'coveralls', require:false

Expand Down
18 changes: 18 additions & 0 deletions Gemfile.lock
Expand Up @@ -72,6 +72,7 @@ GEM
compass (>= 0.12.2, < 0.14)
configatron (2.13.0)
yamler (>= 0.1.0)
cookiejar (0.3.0)
coveralls (0.6.7)
colorize
multi_json (~> 1.3)
Expand Down Expand Up @@ -109,6 +110,17 @@ GEM
dragonfly (0.9.15)
multi_json (~> 1.0)
rack
em-http-request (1.0.3)
addressable (>= 2.2.3)
cookiejar
em-socksify
eventmachine (>= 1.0.0.beta.4)
http_parser.rb (>= 0.5.3)
em-socksify (0.3.0)
eventmachine (>= 1.0.0.beta.4)
em-websocket (0.5.0)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0.5.3)
erubis (2.7.0)
eventmachine (1.0.3)
execjs (2.0.0)
Expand Down Expand Up @@ -253,6 +265,11 @@ GEM
httpclient (~> 2.3.0)
multi_json (~> 1.0)
signature (~> 0.1.6)
pusher-fake (0.9.0)
em-http-request (~> 1.0)
em-websocket (~> 0.5)
multi_json (~> 1.6)
thin (~> 1.5)
query_reviewer (0.1.8)
quiet_assets (1.0.2)
railties (>= 3.1, < 5.0)
Expand Down Expand Up @@ -448,6 +465,7 @@ DEPENDENCIES
pry-nav
pry-rails
pusher
pusher-fake
query_reviewer
quiet_assets
rack-cache
Expand Down
2 changes: 2 additions & 0 deletions features/support/pusher.rb
@@ -0,0 +1,2 @@
require "pusher-fake"
require "pusher-fake/cucumber"

0 comments on commit 7fe9a27

Please sign in to comment.