- GitHub Staff
- https://wincent.dev/
- @wincent
- @GregHurrell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/usr/local/jruby-1.5.1/lib/ruby/gems/1.8/gems/ruby-debug-base-0.10.3.2-java/lib/ruby-debug-base.rb:214 warning: tracing (e.g. set_trace_func) will not capture all events without --debug flag | |
[2010-06-23 16:13:02] INFO WEBrick 1.3.1 | |
[2010-06-23 16:13:02] INFO ruby 1.8.7 (2010-06-06) [java] | |
[2010-06-23 16:13:02] INFO WEBrick::HTTPServer#start: pid=80849 port=2000 | |
Browser#credentials= | |
192.168.1.6 - - [23/Jun/2010:16:13:03 CEST] "GET /authentication HTTP/1.1" 401 22 | |
- -> /authentication | |
192.168.1.6 - - [23/Jun/2010:16:13:03 CEST] "GET /authentication HTTP/1.1" 401 22 | |
- -> /authentication |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Button#click_no_wait | |
192.168.1.6 - - [23/Jun/2010:16:13:13 CEST] "GET /forms_with_input_elements.html HTTP/1.1" 200 9350 | |
- -> /forms_with_input_elements.html | |
192.168.1.6 - - [23/Jun/2010:16:13:13 CEST] "GET /bogus.css HTTP/1.1" 404 418 | |
Referer -> /bogus.css | |
[2010-06-23 16:13:13] ERROR ArgumentError: negative length -35 given | |
/usr/local/jruby-1.5.1/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/utils.rb:546:in `parse_multipart' | |
/usr/local/jruby-1.5.1/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/utils.rb:499:in `loop' | |
/usr/local/jruby-1.5.1/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/utils.rb:499:in `parse_multipart' | |
/usr/local/jruby-1.5.1/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/request.rb:270:in `parse_multipart' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FileField#set | |
192.168.1.6 - - [23/Jun/2010:16:13:18 CEST] "GET /bogus.css HTTP/1.1" 404 418 | |
Referer -> /bogus.css | |
[2010-06-23 16:13:18] ERROR ArgumentError: negative length -39 given | |
/usr/local/jruby-1.5.1/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/utils.rb:546:in `parse_multipart' | |
/usr/local/jruby-1.5.1/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/utils.rb:499:in `loop' | |
/usr/local/jruby-1.5.1/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/utils.rb:499:in `parse_multipart' | |
/usr/local/jruby-1.5.1/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/request.rb:270:in `parse_multipart' | |
/usr/local/jruby-1.5.1/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/request.rb:148:in `POST' | |
/usr/local/jruby-1.5.1/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/request.rb:167:in `params' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Button#click | |
192.168.1.6 - - [23/Jun/2010:16:13:16 CEST] "GET /bogus.css HTTP/1.1" 404 418 | |
Referer -> /bogus.css | |
[2010-06-23 16:13:16] ERROR ArgumentError: negative length -41 given | |
/usr/local/jruby-1.5.1/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/utils.rb:546:in `parse_multipart' | |
/usr/local/jruby-1.5.1/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/utils.rb:499:in `loop' | |
/usr/local/jruby-1.5.1/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/utils.rb:499:in `parse_multipart' | |
/usr/local/jruby-1.5.1/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/request.rb:270:in `parse_multipart' | |
/usr/local/jruby-1.5.1/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/request.rb:148:in `POST' | |
/usr/local/jruby-1.5.1/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/request.rb:167:in `params' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From cffa1be105cc94c2e886c5fb59e490da08293373 Mon Sep 17 00:00:00 2001 | |
From: Wincent Colaiuta <win@wincent.com> | |
Date: Sat, 3 Jul 2010 17:31:02 +0200 | |
Subject: [PATCH] WIP | |
--- | |
features/compatibility.feature | 36 ++++++++++++++++++++++++++++++++++++ | |
lib/rspec/mocks.rb | 2 +- | |
2 files changed, 37 insertions(+), 1 deletions(-) | |
create mode 100644 features/compatibility.feature |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From ac95f82382939821dc89c5fef9f9c5404f528768 Mon Sep 17 00:00:00 2001 | |
From: Wincent Colaiuta <win@wincent.com> | |
Date: Sat, 3 Jul 2010 12:12:50 +0200 | |
Subject: [PATCH] Fixes for "router" and "routes" terminology | |
Commit f7ba614c2db improved the internal consistency of the different | |
means of accessing routes, but it introduced some problems at the level | |
of code comments and user-visible strings. | |
This commit applies fixes on three levels: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require File.expand_path('../../spec_helper', File.dirname(__FILE__)) | |
describe Admin::ForumsController do | |
describe 'routing' do | |
# controller only implements #index, #show and #update | |
specify { get('/admin/forums').should have_routing('admin/forums#index') } | |
specify { get('/admin/forums/foo').should have_routing('admin/forums#show', :id => 'foo') } | |
specify { put('/admin/forums/foo').should have_routing('admin/forums#update', :id => 'foo') } | |
# the remaining RESTful actions aren't recognized |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe IssuesController do | |
describe 'routing' do | |
specify { get('/issues').should have_routing('issues#index') } | |
specify { get('/issues/new').should have_routing('issues#new') } | |
specify { get('/issues/123').should have_routing('issues#show', :id => '123') } | |
specify { get('/issues/123/edit').should have_routing('issues#edit', :id => '123') } | |
specify { put('/issues/123').should have_routing('issues#update', :id => '123') } | |
specify { delete('/issues/123').should have_routing('issues#destroy', :id => '123') } | |
specify { post('/issues').should have_routing('issues#create') } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/features/view_specs/view_spec.feature b/features/view_specs/view_spec.feature | |
index e85c306..7cce24e 100644 | |
--- a/features/view_specs/view_spec.feature | |
+++ b/features/view_specs/view_spec.feature | |
@@ -152,3 +152,34 @@ Feature: view spec | |
""" | |
When I run "rspec spec/views" | |
Then the output should contain "1 example, 0 failures" | |
+ | |
+ Scenario: spec with view that accesses helper_method helpers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ls -laFSh vendor/cache | |
total 65768 | |
-rw-r--r-- 1 wincent staff 14M 28 jun 18:47 webrat-0.7.1.gem | |
-rw-r--r-- 1 wincent staff 7,9M 14 jul 22:07 celerity-0.8.0.beta.1.gem | |
-rw-r--r-- 1 wincent staff 2,1M 14 jul 22:07 jruby-openssl-0.7.gem | |
-rw-r--r-- 1 wincent staff 1,4M 28 jun 18:47 railties-3.0.0.beta4.gem | |
-rw-r--r-- 1 wincent staff 1,3M 28 jun 18:47 selenium-webdriver-0.0.24.gem | |
-rw-r--r-- 1 wincent staff 791K 28 jun 18:47 ffi-0.6.3.gem | |
-rw-r--r-- 1 wincent staff 504K 28 jun 18:47 haml-3.0.12.gem | |
-rw-r--r-- 1 wincent staff 389K 28 jun 18:47 json_pure-1.4.3.gem |