Skip to content

Commit

Permalink
determine example group types by file path
Browse files Browse the repository at this point in the history
  • Loading branch information
dchelimsky committed Jan 25, 2010
1 parent fbbcc43 commit 6ee5fb8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/rspec/rails/example/controller_example_group.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ def #{method}(action)
end

Rspec::Core.configure do |c|
c.include self, :behaviour => { :describes => lambda {|c| c < ::ActionController::Base} }
c.include self, :behaviour => { :file_path => /\/spec\/controllers\// }
end
end
2 changes: 1 addition & 1 deletion lib/rspec/rails/example/request_example_group.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ def last_response
end

Rspec::Core.configure do |c|
c.include self, :behaviour => { :describes => /^\// }
c.include self, :behaviour => { :file_path => /\/spec\/requests\// }
end
end

0 comments on commit 6ee5fb8

Please sign in to comment.