Module: Uninhibited::ObjectExtensions
- Defined in:
- lib/uninhibited/object_extensions.rb
Overview
Extension methods to be included in the global object space for defining features.
Instance Method Summary collapse
-
#Feature(*args, &example_group_block) ⇒ Feature
Defines a new feature:.
Instance Method Details
#Feature(*args, &example_group_block) ⇒ Feature
Defines a new feature:
Feature "User signs in" do
Given "..."
When "..."
Then "..."
end
takes.
20 21 22 23 24 25 |
# File 'lib/uninhibited/object_extensions.rb', line 20 def Feature(*args, &example_group_block) describe(*args) do extend Uninhibited::Feature instance_eval(&example_group_block) if block_given? end end |