Permalink
Browse files

use env variable to set number of times link is clicked

  • Loading branch information...
1 parent f8c9a03 commit 93b3371ce1a1cbac81e43396e59024b3624460a2 @ryanb ryanb committed Sep 28, 2012
Showing with 3 additions and 3 deletions.
  1. +2 −2 README.md
  2. +1 −1 spec/requests/turbolinks_spec.rb
View
@@ -39,9 +39,9 @@ Twitter any day.
## To run it:
```
-$ rake assets:precompile
$ bundle
-$ rspec
+$ rake assets:precompile
+$ TIMES=100 rspec
```
Done.
@@ -4,7 +4,7 @@
describe "Turbolinks" do
it "tests performance", :js => true do
- n = 1000
+ n = ENV["TIMES"] ? ENV["TIMES"].to_i : 1000
Benchmark.bm do |x|
x.report " no turbolinks" do
visit "/pages/1"

0 comments on commit 93b3371

Please sign in to comment.