spec/support/feature.rb in yaoc-0.0.13 vs spec/support/feature.rb in yaoc-0.0.14
- old
+ new
@@ -14,17 +14,16 @@
end
end
end
end
-
def self.feature(*args, &block)
options = if args.last.is_a?(Hash) then args.pop else {} end
options[:capybara_feature] = true
options[:type] = :feature
options[:caller] ||= caller
args.push(options)
describe(*args, &block)
end
-RSpec.configuration.include Capybara::Features, :capybara_feature => true
\ No newline at end of file
+RSpec.configuration.include Capybara::Features, capybara_feature: true