Skip to content
Browse files

Upgrade to RSpec 2

  • Loading branch information...
1 parent 5ac42b3 commit 3e94758d997d29e288bff24b1b10bc2bf287f94a @gabebw gabebw committed May 29, 2011
Showing with 4 additions and 3 deletions.
  1. +1 −0 Rakefile
  2. +1 −1 features/support/env.rb
  3. +2 −2 features/support/matchers.rb
View
1 Rakefile
@@ -122,6 +122,7 @@ gemspec = Gem::Specification.new do |s|
s.add_development_dependency("bourne")
s.add_development_dependency("nokogiri")
s.add_development_dependency("shoulda")
+ s.add_development_dependency("rspec", '~> 2.6.0')
s.authors = ["thoughtbot, inc"]
s.email = %q{support@hoptoadapp.com}
View
2 features/support/env.rb
@@ -1,6 +1,6 @@
require 'active_support'
require 'nokogiri'
-require 'spec'
+require 'rspec'
PROJECT_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..', '..')).freeze
TEMP_DIR = File.join(PROJECT_ROOT, 'tmp').freeze
View
4 features/support/matchers.rb
@@ -1,4 +1,4 @@
-Spec::Matchers.define :have_content do |xpath, content|
+RSpec::Matchers.define :have_content do |xpath, content|
match do |document|
@elements = document.search(xpath)
@@ -32,4 +32,4 @@
end
end
-World(Spec::Matchers)
+World(RSpec::Matchers)

0 comments on commit 3e94758

Please sign in to comment.
Something went wrong with that request. Please try again.