Skip to content

Commit

Permalink
Add Feature to RSpec::Core::ObjectExtensions
Browse files Browse the repository at this point in the history
  • Loading branch information
bernerdschaefer committed Jun 1, 2010
1 parent eee858c commit afd3aea
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/unencumbered.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
if defined?(RSpec)
class RSpec::Core::ExampleGroup
class << self
alias_method :Feature, :describe
module Rspec::Core::ObjectExtensions
alias_method :Feature, :describe
end

def executes(scope=:all, &block)
before(scope, &block)
end
class RSpec::Core::ExampleGroup
def self.executes(scope=:all, &block)
before(scope, &block)
end

%w(Scenario: Given When Background).each do |group|
Expand Down

0 comments on commit afd3aea

Please sign in to comment.