Skip to content

Commit

Permalink
Remove behaviour key from metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
dchelimsky committed Sep 19, 2010
1 parent 9ef6385 commit 6f254ac
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/rspec/core/metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,10 @@ def initialize(superclass_metadata=nil)
end

store(:example_group, example_group || {})
store(:behaviour, self[:example_group])
yield self if block_given?
end

RESERVED_KEYS = [
:behaviour,
:description,
:example_group,
:execution_result,
Expand Down Expand Up @@ -127,7 +125,7 @@ def superclass_metadata
end

def description_from(args)
@description_from_args ||= args.map{|a| a.to_s.strip}.join(" ")
args.map{|a| a.to_s.strip}.join(" ")
end

def full_description_from(args)
Expand Down

0 comments on commit 6f254ac

Please sign in to comment.