Skip to content

Commit

Permalink
move SpecFailed definition to spec_helper
Browse files Browse the repository at this point in the history
  • Loading branch information
pd committed Nov 27, 2008
1 parent 94073fc commit 5287a40
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 0 additions & 4 deletions spec/rspec_hpricot_matchers/have_tag_spec.rb
@@ -1,9 +1,5 @@
require File.dirname(__FILE__) + '/../spec_helper'

unless defined?(SpecFailed)
SpecFailed = Spec::Expectations::ExpectationNotMetError
end

describe 'have_tag' do
before(:each) do
@html = "<ul><li>An egregiously long string</li></ul>"
Expand Down
4 changes: 4 additions & 0 deletions spec/spec_helper.rb
Expand Up @@ -4,3 +4,7 @@
Spec::Runner.configure do |config|
config.include(RspecHpricotMatchers)
end

unless defined?(SpecFailed)
SpecFailed = Spec::Expectations::ExpectationNotMetError
end

0 comments on commit 5287a40

Please sign in to comment.