Skip to content

Commit

Permalink
Add cuba/capybara for backward compatibilty.
Browse files Browse the repository at this point in the history
Existing users of cuba/test shouldn't be penalized too much.
The easiest solution of course is to offer them a one-line
require to get the old behavior back if they need it.

`require "cuba/capybara"` gives them this.
  • Loading branch information
Cyril David committed Jun 29, 2012
1 parent 0c6fb79 commit add8c10
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions lib/cuba/capybara.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
require "cuba"
require "cutest"
require "capybara/dsl"

class Cutest::Scope
if defined? Capybara::DSL
include Capybara::DSL
else
include Capybara
end
end

Capybara.app = Cuba

0 comments on commit add8c10

Please sign in to comment.